mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user