]> khamidou — GitHub mirrors - electron.git/commitdiff
Continue fixing compilation erros on Windows.
authorCheng Zhao <zcbenz@gmail.com>
Tue, 17 Dec 2013 10:34:45 +0000 (18:34 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 17 Dec 2013 10:34:45 +0000 (18:34 +0800)
browser/api/atom_api_menu_win.cc
browser/native_window_win.cc
browser/native_window_win.h

index e6bce18c2103c6c839e9e567d51b13797e3db5fb..c5f5522367b9bb4c15a20c37e75bce42adc7e571 100644 (file)
@@ -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<v8::Value>& args) {
     return node::ThrowTypeError("Bad argument");
 
   static_cast<NativeWindowWin*>(native_window)->SetMenu(self->model_.get());
-
-  return v8::Undefined();
 }
 
 // static
index 89542297a60a69048e5f33e857a52debaa46355e..a99a4a0b49004f95a7d403082f7e6b9f4fdea162 100644 (file)
@@ -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_);
 }
 
index 84b7ac0bd20fb52aabf01f01441d877ef69b2d7a..d7f58f55e14b3c3211e2d6cfede9722dfd87c366 100644 (file)
@@ -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: