Bug 1811834 - Clean up nsWidgetInitData. r=cmartin,geckoview-reviewers,calu

Move it to the mozilla::widget namespace.

Use enum classes for transparency, popup type, popup level, etc.

Mostly automated with sed, but there were a few manual changes required
as well in windows code because they relied on Atomic<TransparencyMode>
working (which now doesn't because TransparencyMode is 1 byte instead of
4 bytes).

Differential Revision: https://phabricator.services.mozilla.com/D167537
This commit is contained in:
Emilio Cobos Álvarez
2023-01-23 23:58:41 +00:00
parent fcc5d8d102
commit e3921efc1e
70 changed files with 842 additions and 829 deletions

View File

@@ -69,7 +69,7 @@ bool WebRenderLayerManager::Initialize(
static bool hasInitialized = false;
WindowKind windowKind;
if (mWidget->WindowType() != eWindowType_popup) {
if (mWidget->GetWindowType() != widget::WindowType::Popup) {
windowKind = WindowKind::MAIN;
} else {
windowKind = WindowKind::SECONDARY;