CompositorWidgetChild.cpp |
|
1394 |
CompositorWidgetChild.h |
|
1395 |
CompositorWidgetParent.cpp |
|
1424 |
CompositorWidgetParent.h |
|
1311 |
DMABufLibWrapper.cpp |
|
10078 |
DMABufLibWrapper.h |
MOZ_LOGGING |
6134 |
DMABufSurface.cpp |
TODO:
DRM device selection:
https://lists.freedesktop.org/archives/wayland-devel/2018-November/039660.html
|
30792 |
DMABufSurface.h |
|
9148 |
GRefPtr.h |
|
876 |
GtkCompositorWidget.cpp |
|
3847 |
GtkCompositorWidget.h |
= nullptr |
3119 |
IMContextWrapper.cpp |
|
121836 |
IMContextWrapper.h |
KeyHandlingState is result of IMContextWrapper::OnKeyEvent().
|
27097 |
InProcessGtkCompositorWidget.cpp |
static |
1624 |
InProcessGtkCompositorWidget.h |
|
954 |
MPRISInterfaceDescription.h |
|
5176 |
MPRISServiceHandler.cpp |
|
28868 |
MPRISServiceHandler.h |
This class implements the "MPRIS" D-Bus Service
(https://specifications.freedesktop.org/mpris-spec/2.2),
which is used to communicate with the Desktop Environment about the
Multimedia playing in Gecko.
Note that this interface requires many methods which may not be supported by
Gecko, the interface
however provides CanXYZ properties for these methods, so the method is
defined but won't be executed.
Also note that the following defines are for parts that the MPRIS Spec
defines optional. The code won't
compile with any of the defines set, yet, as those aren't implemented yet and
probably never will be of
use for gecko. For sake of completeness, they have been added until the
decision about their implementation
is finally made.
The constexpr'ed methods are capabilities of the user agent known at compile
time, e.g. we decided at
compile time whether we ever want to support closing the user agent via MPRIS
(Quit() and CanQuit()).
Other properties like CanPlay() might depend on the runtime state (is there
media available for playback?)
and thus aren't a constexpr but merely a const method.
|
6830 |
MediaKeysEventSourceFactory.cpp |
|
450 |
MozContainer.cpp |
MOZ_LOGGING |
12349 |
MozContainer.h |
MozContainer
This class serves three purposes in the nsIWidget implementation.
- It provides objects to receive signals from GTK for events on native
windows.
- It provides GdkWindow to draw content on Wayland or when Gtk+ renders
client side decorations to mShell.
- It provides a container parent for GtkWidgets. The only GtkWidgets
that need this in Mozilla are the GtkSockets for windowed plugins (Xt
and XEmbed).
Note that the window hierarchy in Mozilla differs from conventional
GtkWidget hierarchies.
Mozilla's hierarchy exists through the GdkWindow hierarchy, and all child
GdkWindows (within a child nsIWidget hierarchy) belong to one MozContainer
GtkWidget. If the MozContainer is unrealized or its GdkWindows are
destroyed for some other reason, then the hierarchy no longer exists. (In
conventional GTK clients, the hierarchy is recorded by the GtkWidgets, and
so can be re-established after destruction of the GdkWindows.)
One consequence of this is that the MozContainer does not know which of its
GdkWindows should parent child GtkWidgets. (Conventional GtkContainers
determine which GdkWindow to assign child GtkWidgets.)
Therefore, when adding a child GtkWidget to a MozContainer,
gtk_widget_set_parent_window should be called on the child GtkWidget before
it is realized.
|
3226 |
MozContainerWayland.cpp |
MOZ_LOGGING |
19103 |
MozContainerWayland.h |
MozContainer
This class serves three purposes in the nsIWidget implementation.
- It provides objects to receive signals from GTK for events on native
windows.
- It provides GdkWindow to draw content on Wayland or when Gtk+ renders
client side decorations to mShell.
|
3211 |
NativeKeyBindings.cpp |
|
11727 |
NativeKeyBindings.h |
|
1316 |
PCompositorWidget.ipdl |
|
725 |
PlatformWidgetTypes.ipdlh |
|
816 |
ScreenHelperGTK.cpp |
MOZ_X11 |
6842 |
ScreenHelperGTK.h |
|
1125 |
TaskbarProgress.cpp |
TaskbarProgress
**************************************************************************** |
3481 |
TaskbarProgress.h |
|
860 |
WakeLockListener.cpp |
|
14006 |
WakeLockListener.h |
Receives WakeLock events and simply passes it on to the right WakeLockTopic
to inhibit the screensaver.
|
1468 |
WaylandVsyncSource.cpp |
|
6544 |
WaylandVsyncSource.h |
WaylandVsyncSource
This class provides a per-widget VsyncSource under Wayland, emulated using
frame callbacks on the widget surface with empty surface commits.
Wayland does not expose vsync/vblank, as it considers that an implementation
detail the clients should not concern themselves with. Instead, frame
callbacks are provided whenever the compositor believes it is a good time to
start drawing the next frame for a particular surface, giving us as much
time as possible to do so.
Note that the compositor sends frame callbacks only when it sees fit, and
when that may be is entirely up to the compositor. One cannot expect a
certain rate of callbacks, or any callbacks at all. Examples of common
variations would be surfaces moved between outputs with different refresh
rates, and surfaces that are hidden and therefore do not receieve any
callbacks at all. Other hypothetical scenarios of variation could be
throttling to conserve power, or because a user has requested it.
|
3085 |
WidgetStyleCache.cpp |
|
56716 |
WidgetStyleCache.h |
Return a new style context based on aWidget, as a child of aParentStyle.
If aWidget still has a floating reference, then it is sunk and released.
|
2167 |
WidgetTraceEvent.cpp |
|
1705 |
WidgetUtilsGtk.cpp |
|
1207 |
WidgetUtilsGtk.h |
See WidgetUtils::IsTouchDeviceSupportPresent(). |
654 |
WindowSurfaceProvider.cpp |
|
4121 |
WindowSurfaceProvider.h |
Holds the logic for creating WindowSurface's for a GTK nsWindow.
The main purpose of this class is to allow sharing of logic between
nsWindow and GtkCompositorWidget, for when OMTC is enabled or disabled.
|
2398 |
WindowSurfaceWayland.cpp |
MOZ_LOGGING |
37613 |
WindowSurfaceWayland.h |
|
9670 |
WindowSurfaceX11.cpp |
static |
1568 |
WindowSurfaceX11.h |
|
1124 |
WindowSurfaceX11Image.cpp |
|
9095 |
WindowSurfaceX11Image.h |
|
1453 |
WindowSurfaceXRender.cpp |
|
2613 |
WindowSurfaceXRender.h |
|
1076 |
compat |
|
3 |
compat-gtk3 |
|
1 |
components.conf |
|
6405 |
crashtests |
|
3 |
gtk3drawing.cpp |
This file contains painting functions for each of the gtk2 widgets.
Adapted from the gtkdrawing.c, and gtk+2.0 source.
|
125314 |
gtkdrawing.h |
gtkdrawing.h: GTK widget rendering utilities
gtkdrawing provides an API for rendering GTK widgets in the
current theme to a pixmap or window, without requiring an actual
widget instantiation, similar to the Macintosh Appearance Manager
or Windows XP's DrawThemeBackground() API.
|
21145 |
maiRedundantObjectFactory.c |
base init |
2826 |
maiRedundantObjectFactory.h |
__NS_MAI_REDUNDANT_OBJECT_FACTORY_H__ |
897 |
moz.build |
|
4621 |
mozgtk |
|
5 |
mozwayland |
|
3 |
nsAppShell.cpp |
static |
8311 |
nsAppShell.h |
nsAppShell_h__ |
975 |
nsApplicationChooser.cpp |
static |
4381 |
nsApplicationChooser.h |
|
1019 |
nsBidiKeyboard.cpp |
|
1489 |
nsBidiKeyboard.h |
|
637 |
nsClipboard.cpp |
|
27824 |
nsClipboard.h |
MOZ_LOGGING |
2991 |
nsClipboardWayland.cpp |
|
32006 |
nsClipboardWayland.h |
|
5196 |
nsClipboardX11.cpp |
|
11748 |
nsClipboardX11.h |
Spins X event loop until timing out or being completed. Returns
null if we time out, otherwise returns the completed data (passing
ownership to caller).
|
2366 |
nsColorPicker.cpp |
obsolete, unused 'pixel' value |
7815 |
nsColorPicker.h |
|
2247 |
nsDeviceContextSpecG.cpp |
for PR_GetEnv |
11699 |
nsDeviceContextSpecG.h |
should be <limits.h>? |
1820 |
nsDragService.cpp |
|
77276 |
nsDragService.h |
Native GTK DragService wrapper
|
7554 |
nsFilePicker.cpp |
check type of file
if file is named pipe, Open is blocking which may lead to UI
nonresponsiveness; if file is directory/socket, it also isn't
likely to get preview |
20418 |
nsFilePicker.h |
|
2822 |
nsGTKToolkit.h |
Wrapper around the thread running the message pump.
The toolkit abstraction is necessary because the message pump must
execute within the same thread that created the widget under Win32.
|
1556 |
nsGtkCursors.h |
MOZ_CURSOR_HAND_GRAB |
25232 |
nsGtkKeyUtils.cpp |
|
85268 |
nsGtkKeyUtils.h |
KeymapWrapper is a wrapper class of GdkKeymap. GdkKeymap doesn't support
all our needs, therefore, we need to access lower level APIs.
But such code is usually complex and might be slow. Against such issues,
we should cache some information.
This class provides only static methods. The methods is using internal
singleton instance which is initialized by default GdkKeymap. When the
GdkKeymap is destroyed, the singleton instance will be destroyed.
|
15630 |
nsGtkUtils.h |
|
823 |
nsIImageToPixbuf.h |
An interface that allows converting the current frame of an imgIContainer to
a GdkPixbuf*.
|
1159 |
nsImageToPixbuf.cpp |
|
3715 |
nsImageToPixbuf.h |
The return value of all these, if not null, should be
released as needed by the caller using g_object_unref.
|
1449 |
nsLookAndFeel.cpp |
MOZ_LOGGING |
54173 |
nsLookAndFeel.h |
|
4444 |
nsNativeBasicThemeGTK.cpp |
|
5089 |
nsNativeBasicThemeGTK.h |
|
1994 |
nsNativeThemeGTK.cpp |
|
77404 |
nsNativeThemeGTK.h |
|
4630 |
nsPrintDialogGTK.cpp |
|
41309 |
nsPrintDialogGTK.h |
|
1067 |
nsPrintSettingsGTK.cpp |
---------------------------------------------------
|
22260 |
nsPrintSettingsGTK.h |
//*** nsPrintSettingsGTK
//*****************************************************************************
class nsPrintSettingsGTK : public nsPrintSettings {
public:
NS_DECL_ISUPPORTS_INHERITED
NS_DECLARE_STATIC_IID_ACCESSOR(NS_PRINTSETTINGSGTK_IID)
nsPrintSettingsGTK();
explicit nsPrintSettingsGTK(const PrintSettingsInitializer& aSettings);
// We're overriding these methods because we want to read/write with GTK
// objects, not local variables. This allows a simpler settings implementation
// between Gecko and GTK.
GtkPageSetup* GetGtkPageSetup() { return mPageSetup; };
void SetGtkPageSetup(GtkPageSetup* aPageSetup);
GtkPrintSettings* GetGtkPrintSettings() { return mPrintSettings; };
void SetGtkPrintSettings(GtkPrintSettings* aPrintSettings);
GtkPrinter* GetGtkPrinter() { return mGTKPrinter; };
void SetGtkPrinter(GtkPrinter* aPrinter);
// Reversed, color, orientation and file name are all stored in the
// GtkPrintSettings. Orientation is also stored in the GtkPageSetup and its
// setting takes priority when getting the orientation.
NS_IMETHOD GetPrintReversed(bool* aPrintReversed) override;
NS_IMETHOD SetPrintReversed(bool aPrintReversed) override;
NS_IMETHOD GetPrintInColor(bool* aPrintInColor) override;
NS_IMETHOD SetPrintInColor(bool aPrintInColor) override;
NS_IMETHOD GetOrientation(int32_t* aOrientation) override;
NS_IMETHOD SetOrientation(int32_t aOrientation) override;
NS_IMETHOD GetToFileName(nsAString& aToFileName) override;
NS_IMETHOD SetToFileName(const nsAString& aToFileName) override;
// Gets/Sets the printer name in the GtkPrintSettings. If no printer name is
// specified there, you will get back the name of the current internal
// GtkPrinter.
NS_IMETHOD GetPrinterName(nsAString& Printer) override;
NS_IMETHOD SetPrinterName(const nsAString& aPrinter) override;
// Number of copies is stored/gotten from the GtkPrintSettings.
NS_IMETHOD GetNumCopies(int32_t* aNumCopies) override;
NS_IMETHOD SetNumCopies(int32_t aNumCopies) override;
NS_IMETHOD GetScaling(double* aScaling) override;
NS_IMETHOD SetScaling(double aScaling) override;
// A name recognised by GTK is strongly advised here, as this is used to
// create a GtkPaperSize.
NS_IMETHOD GetPaperId(nsAString& aPaperId) override;
NS_IMETHOD SetPaperId(const nsAString& aPaperId) override;
NS_IMETHOD SetUnwriteableMarginInTwips(
nsIntMargin& aUnwriteableMargin) override;
NS_IMETHOD SetUnwriteableMarginTop(double aUnwriteableMarginTop) override;
NS_IMETHOD SetUnwriteableMarginLeft(double aUnwriteableMarginLeft) override;
NS_IMETHOD SetUnwriteableMarginBottom(
double aUnwriteableMarginBottom) override;
NS_IMETHOD SetUnwriteableMarginRight(double aUnwriteableMarginRight) override;
NS_IMETHOD GetPaperWidth(double* aPaperWidth) override;
NS_IMETHOD SetPaperWidth(double aPaperWidth) override;
NS_IMETHOD GetPaperHeight(double* aPaperHeight) override;
NS_IMETHOD SetPaperHeight(double aPaperHeight) override;
NS_IMETHOD SetPaperSizeUnit(int16_t aPaperSizeUnit) override;
NS_IMETHOD GetEffectivePageSize(double* aWidth, double* aHeight) override;
NS_IMETHOD SetupSilentPrinting() override;
NS_IMETHOD SetPageRanges(const nsTArray<int32_t>&) override;
NS_IMETHOD GetPageRanges(nsTArray<int32_t>&) override;
NS_IMETHOD GetResolution(int32_t* aResolution) override;
NS_IMETHOD SetResolution(int32_t aResolution) override;
NS_IMETHOD GetDuplex(int32_t* aDuplex) override;
NS_IMETHOD SetDuplex(int32_t aDuplex) override;
NS_IMETHOD GetOutputFormat(int16_t* aOutputFormat) override;
protected:
virtual ~nsPrintSettingsGTK();
nsPrintSettingsGTK(const nsPrintSettingsGTK& src);
nsPrintSettingsGTK& operator=(const nsPrintSettingsGTK& rhs);
virtual nsresult _Clone(nsIPrintSettings** _retval) override;
virtual nsresult _Assign(nsIPrintSettings* aPS) override;
GtkUnit GetGTKUnit(int16_t aGeckoUnit);
void SaveNewPageSize();
/**
Re-initialize mUnwriteableMargin with values from mPageSetup.
Should be called whenever mPageSetup is initialized or overwritten.
|
5412 |
nsPrintSettingsServiceGTK.cpp |
|
2801 |
nsPrintSettingsServiceGTK.h |
|
1015 |
nsSound.cpp |
used to play sounds with libcanberra. |
11582 |
nsSound.h |
__nsSound_h__ |
771 |
nsToolkit.cpp |
|
1061 |
nsUserIdleServiceGTK.cpp |
|
3708 |
nsUserIdleServiceGTK.h |
|
1595 |
nsWaylandDisplay.cpp |
|
10740 |
nsWaylandDisplay.h |
|
4728 |
nsWidgetFactory.cpp |
|
1940 |
nsWidgetFactory.h |
|
697 |
nsWindow.cpp |
MOZ_WAYLAND |
283916 |
nsWindow.h |
MOZ_X11 |
25613 |
wayland |
|
13 |