diff --git a/atom/browser/api/atom_api_browser_view.cc b/atom/browser/api/atom_api_browser_view.cc index 57fb06fcd2a3..05ce95aa68f5 100644 --- a/atom/browser/api/atom_api_browser_view.cc +++ b/atom/browser/api/atom_api_browser_view.cc @@ -114,7 +114,7 @@ void BrowserView::SetBackgroundColor(const std::string& color_name) { view_->SetBackgroundColor(ParseHexColor(color_name)); } -v8::Local BrowserView::WebContents() { +v8::Local BrowserView::GetWebContents() { if (web_contents_.IsEmpty()) { return v8::Null(isolate()); } @@ -131,7 +131,7 @@ void BrowserView::BuildPrototype(v8::Isolate* isolate, .SetMethod("setAutoResize", &BrowserView::SetAutoResize) .SetMethod("setBounds", &BrowserView::SetBounds) .SetMethod("setBackgroundColor", &BrowserView::SetBackgroundColor) - .SetProperty("webContents", &BrowserView::WebContents) + .SetProperty("webContents", &BrowserView::GetWebContents) .SetProperty("id", &BrowserView::ID); } diff --git a/atom/browser/api/atom_api_browser_view.h b/atom/browser/api/atom_api_browser_view.h index 36992bc6942d..f6f45c5dbbd2 100644 --- a/atom/browser/api/atom_api_browser_view.h +++ b/atom/browser/api/atom_api_browser_view.h @@ -56,7 +56,7 @@ class BrowserView : public mate::TrackableObject { void SetBounds(const gfx::Rect& bounds); void SetBackgroundColor(const std::string& color_name); - v8::Local WebContents(); + v8::Local GetWebContents(); v8::Global web_contents_; class WebContents* api_web_contents_;