From: Cheng Zhao Date: Tue, 17 Dec 2013 10:34:45 +0000 (+0800) Subject: Continue fixing compilation erros on Windows. X-Git-Tag: v0.8.0~4^2~15 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=56f709ff1f9585198be8f9326f65fceb90f3dd5b;p=electron.git Continue fixing compilation erros on Windows. --- diff --git a/browser/api/atom_api_menu_win.cc b/browser/api/atom_api_menu_win.cc index e6bce18c..c5f55223 100644 --- a/browser/api/atom_api_menu_win.cc +++ b/browser/api/atom_api_menu_win.cc @@ -10,6 +10,8 @@ #include "ui/gfx/point.h" #include "ui/gfx/screen.h" +#include "common/v8/node_common.h" + namespace atom { namespace api { @@ -40,8 +42,6 @@ void Menu::AttachToWindow(const v8::FunctionCallbackInfo& args) { return node::ThrowTypeError("Bad argument"); static_cast(native_window)->SetMenu(self->model_.get()); - - return v8::Undefined(); } // static diff --git a/browser/native_window_win.cc b/browser/native_window_win.cc index 89542297..a99a4a0b 100644 --- a/browser/native_window_win.cc +++ b/browser/native_window_win.cc @@ -439,10 +439,9 @@ void NativeWindowWin::Layout() { OnViewWasResized(); } -void NativeWindowWin::ViewHierarchyChanged(bool is_add, - views::View* parent, - views::View* child) { - if (is_add && child == this) +void NativeWindowWin::ViewHierarchyChanged( + const ViewHierarchyChangedDetails& details) { + if (details.is_add && details.child == this) AddChildView(web_view_); } diff --git a/browser/native_window_win.h b/browser/native_window_win.h index 84b7ac0b..d7f58f55 100644 --- a/browser/native_window_win.h +++ b/browser/native_window_win.h @@ -87,9 +87,8 @@ class NativeWindowWin : public NativeWindow, // Overridden from views::View: virtual void Layout() OVERRIDE; - virtual void ViewHierarchyChanged(bool is_add, - views::View* parent, - views::View* child) OVERRIDE; + virtual void ViewHierarchyChanged( + const ViewHierarchyChangedDetails& details) OVERRIDE; virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; // Overridden from views::WidgetDelegate: