gecko-dev/xpfe/appshell
filips 20d7c9c0d8 Bug 1747722 - Allow changing window class hints using attributes. r=emilio,stransky
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
2023-03-02 16:22:05 +00:00
..
test Bug 1782008 - Remove now unnecessary .eslintrc.js files. r=webcompat-reviewers,extension-reviewers,media-playback-reviewers,pip-reviewers,denschub,rpl,alwu,mossop 2022-08-03 11:16:20 +00:00
AppWindow.cpp Bug 1747722 - Allow changing window class hints using attributes. r=emilio,stransky 2023-03-02 16:22:05 +00:00
AppWindow.h Bug 1814834 - Maintain client size in SyncAttributesToWidget() depending on the last resize. r=emilio 2023-02-13 21:00:02 +00:00
components.conf
LiveResizeListener.h
moz.build
nsAppShellCID.h
nsAppShellService.cpp Bug 1816436 - Narrow down the pipMask on GTK. r=stransky,mconley 2023-02-16 14:50:23 +00:00
nsAppShellService.h
nsAppShellWindowEnumerator.cpp
nsAppShellWindowEnumerator.h
nsChromeTreeOwner.cpp Bug 1803611 - Part 2: Implement AppWindow::Set/GetDimensions. r=emilio 2023-01-27 11:33:37 +00:00
nsChromeTreeOwner.h
nsContentTreeOwner.cpp Bug 1803611 - Part 2: Implement AppWindow::Set/GetDimensions. r=emilio 2023-01-27 11:33:37 +00:00
nsContentTreeOwner.h Bug 1786048 - Part 3: Merge nsIEmbeddingSiteWindow into nsIBaseWindow. r=emilio 2022-12-15 23:13:00 +00:00
nsIAppShellService.idl
nsIAppWindow.idl Bug 1786048 - Part 4: Remove cross process SizeShellTo. r=emilio 2022-12-15 23:13:01 +00:00
nsIWindowlessBrowser.idl
nsIWindowMediator.idl
nsIWindowMediatorListener.idl Bug 1802288 - remove trailing whitespaces in idl/webidl files r=credential-management-reviewers,webidl,smaug,sgalich 2022-12-28 09:52:44 +00:00
nsIXULBrowserWindow.idl Bug 1802288 - remove trailing whitespaces in idl/webidl files r=credential-management-reviewers,webidl,smaug,sgalich 2022-12-28 09:52:44 +00:00
nsWindowMediator.cpp
nsWindowMediator.h