fix: explicitly call GetNativeNSView() on macOS (#46733)

* fix: explicitly call GetNativeNSView() on macOS

* chore: move macOS impl to a .mm file

This is needed in order to access gfx::NativeView::GetNativeNSView()
This commit is contained in:
Charles Kerr 2025-04-23 17:55:18 -05:00 committed by GitHub
commit c7b0bdab7e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 62 additions and 4 deletions

View file

@ -58,9 +58,9 @@ class BrowserView;
}
#if BUILDFLAG(IS_MAC)
typedef gfx::NativeView NativeWindowHandle;
using NativeWindowHandle = gfx::NativeView;
#else
typedef gfx::AcceleratedWidget NativeWindowHandle;
using NativeWindowHandle = gfx::AcceleratedWidget;
#endif
class NativeWindow : public base::SupportsUserData,