mirror of
https://github.com/electron/electron.git
synced 2026-01-28 08:48:14 -05:00
Warn about using GetNativeView() in views.
This commit is contained in:
@@ -91,6 +91,8 @@ views::View* InspectableWebContentsViewViews::GetWebView() {
|
||||
}
|
||||
|
||||
gfx::NativeView InspectableWebContentsViewViews::GetNativeView() const {
|
||||
NOTREACHED() << "GetNativeView() shouldn't be used when having views library, "
|
||||
"use GetView() instead";
|
||||
return inspectable_web_contents_->GetWebContents()->GetView()->GetNativeView();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user