]> khamidou — GitHub mirrors - electron.git/commitdiff
Plumb code all the way up
authorPaul Betts <paul@paulbetts.org>
Sat, 7 Feb 2015 00:12:32 +0000 (16:12 -0800)
committerPaul Betts <paul@paulbetts.org>
Sat, 7 Feb 2015 00:12:32 +0000 (16:12 -0800)
atom/browser/api/atom_api_window.cc
atom/browser/api/atom_api_window.h
atom/browser/native_window.h
atom/browser/native_window_views.cc

index 30e386540b5c1ca356d495c320feb810367b8a71..cc7923feab60c188472c78ff0bf1583793cb07ca 100644 (file)
@@ -487,6 +487,7 @@ void Window::BuildPrototype(v8::Isolate* isolate,
       .SetMethod("capturePage", &Window::CapturePage)
       .SetMethod("print", &Window::Print)
       .SetMethod("setProgressBar", &Window::SetProgressBar)
+      .SetMethod("setOverlayIcon", &Window::SetOverlayIcon)
       .SetMethod("setAutoHideMenuBar", &Window::SetAutoHideMenuBar)
       .SetMethod("isMenuBarAutoHide", &Window::IsMenuBarAutoHide)
       .SetMethod("setMenuBarVisibility", &Window::SetMenuBarVisibility)
index 494519d28f2ddd86295b2475f8f2f223241adfb6..d81a3470b7dfd9b4e66b6e72a7ec82c1fd5fb1af 100644 (file)
@@ -118,6 +118,7 @@ class Window : public mate::EventEmitter,
   void CapturePage(mate::Arguments* args);
   void Print(mate::Arguments* args);
   void SetProgressBar(double progress);
+  void SetOverlayIcon(gfx::ImageSkia& overlay, const std::string& description);
   void SetAutoHideMenuBar(bool auto_hide);
   bool IsMenuBarAutoHide();
   void SetMenuBarVisibility(bool visible);
index 0f3a8deb7be11e0e33c73398f69896160bf3f2eb..0a9ecaf00dbde4dedf6721b14411c1ee9a3d1420 100644 (file)
@@ -142,6 +142,7 @@ class NativeWindow : public brightray::DefaultWebContentsDelegate,
   virtual bool HasModalDialog();
   virtual gfx::NativeWindow GetNativeWindow() = 0;
   virtual void SetProgressBar(double progress) = 0;
+  virtual void SetOverlayIcon(gfx::ImageSkia& overlay, const std::string& description) = 0;
 
   virtual bool IsClosed() const { return is_closed_; }
   virtual void OpenDevTools();
index db4090b269a90e580ee70f1affef72fb6c3ebbf8..3d3b857ec36561fae2232e8efd3281fe1667a0e2 100644 (file)
@@ -613,7 +613,7 @@ void NativeWindowViews::SetProgressBar(double progress) {
 #endif
 }
 
-void NativeWindowViews::SetOverlayIcon(gfx::ImageSkia& overlay, std::string& description) {
+void NativeWindowViews::SetOverlayIcon(gfx::ImageSkia& overlay, const std::string& description) {
 #if defined(OS_WIN)
   if (base::win::GetVersion() < base::win::VERSION_WIN7)
     return;