mac: AcceleratedWidget should be window's content view

This commit is contained in:
Cheng Zhao 2018-03-06 13:35:44 +09:00
parent e7f175d578
commit 8a1884c407

View file

@ -1554,7 +1554,7 @@ gfx::NativeWindow NativeWindowMac::GetNativeWindow() const {
} }
gfx::AcceleratedWidget NativeWindowMac::GetAcceleratedWidget() const { gfx::AcceleratedWidget NativeWindowMac::GetAcceleratedWidget() const {
return inspectable_web_contents()->GetView()->GetNativeView(); return [window_ contentView];
} }
void NativeWindowMac::SetProgressBar(double progress, const NativeWindow::ProgressState state) { void NativeWindowMac::SetProgressBar(double progress, const NativeWindow::ProgressState state) {