mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
Small style fixes
This commit is contained in:
@@ -498,8 +498,8 @@ void Window::BuildPrototype(v8::Isolate* isolate,
|
||||
.SetMethod("setMenuBarVisibility", &Window::SetMenuBarVisibility)
|
||||
.SetMethod("isMenuBarVisible", &Window::IsMenuBarVisible)
|
||||
#if defined(OS_MACOSX)
|
||||
.SetMethod(
|
||||
"showDefinitionForSelection", &Window::ShowDefinitionForSelection)
|
||||
.SetMethod("showDefinitionForSelection",
|
||||
&Window::ShowDefinitionForSelection)
|
||||
#endif
|
||||
.SetMethod("_getWebContents", &Window::GetWebContents)
|
||||
.SetMethod("_getDevToolsWebContents", &Window::GetDevToolsWebContents);
|
||||
|
||||
@@ -644,6 +644,8 @@ void NativeWindowMac::SetProgressBar(double progress) {
|
||||
|
||||
void NativeWindowMac::ShowDefinitionForSelection() {
|
||||
content::WebContents* web_contents = GetWebContents();
|
||||
if (!web_contents)
|
||||
return;
|
||||
content::RenderWidgetHostView* rwhv = web_contents->GetRenderWidgetHostView();
|
||||
if (!rwhv)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user