mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
20d7c9c0d8
This patch adds two new attributes to the window's `html` element, `windowclass` and `windowname`, to allow directly controlling the window's class hints on Xorg/Wayland (`res_class` and `res_name`) from the chrome/JS code. When they are set, values are used as class hints for their window. When they are not set, the current behavior of determining `res_class` and `res_name` (using `gdk_get_program_class` for `res_class` and parsing `windowtype` for `res_name`) is preserved. Changes in `widget/nsIWidget.h` and `widget/nsBaseWidget.h` are only interface changes so that `setWindowClass` can accept three attributes. Although this patch does not affect Windows, `widget/windows/nsWindow.h` and `widget/windows/nsWindow.cpp` have been updated to comply with the new interface. `xpfe/appshell/AppWindow.cpp` has been updated to get the additional attributes and call `setWindowClass` with them. The main changes are in `widget/gtk/nsWindow.h` and `widget/gtk/nsWindow.cpp`. Differential Revision: https://phabricator.services.mozilla.com/D169720 |
||
---|---|---|
.. | ||
test | ||
AppWindow.cpp | ||
AppWindow.h | ||
components.conf | ||
LiveResizeListener.h | ||
moz.build | ||
nsAppShellCID.h | ||
nsAppShellService.cpp | ||
nsAppShellService.h | ||
nsAppShellWindowEnumerator.cpp | ||
nsAppShellWindowEnumerator.h | ||
nsChromeTreeOwner.cpp | ||
nsChromeTreeOwner.h | ||
nsContentTreeOwner.cpp | ||
nsContentTreeOwner.h | ||
nsIAppShellService.idl | ||
nsIAppWindow.idl | ||
nsIWindowlessBrowser.idl | ||
nsIWindowMediator.idl | ||
nsIWindowMediatorListener.idl | ||
nsIXULBrowserWindow.idl | ||
nsWindowMediator.cpp | ||
nsWindowMediator.h |