Small style fixes

This commit is contained in:
Cheng Zhao
2014-12-19 12:48:53 -08:00
parent 598060dfd8
commit 6cdc8e4b96
3 changed files with 21 additions and 10 deletions

View File

@@ -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);

View File

@@ -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;