fix: explicitly call GetNativeNSView() on macOS (#46750)
* fix: explicitly call GetNativeNSView() on macOS Co-authored-by: Charles Kerr <charles@charleskerr.com> * chore: move macOS impl to a .mm file This is needed in order to access gfx::NativeView::GetNativeNSView() Co-authored-by: Charles Kerr <charles@charleskerr.com> --------- Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
parent
2629b31c19
commit
fc319e0ea3
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