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:
parent
686ae47696
commit
c7b0bdab7e
6 changed files with 62 additions and 4 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue