]> khamidou — GitHub mirrors - electron.git/commitdiff
Come correct with line length and constness
authorPaul Betts <paul@paulbetts.org>
Sat, 7 Feb 2015 00:31:41 +0000 (16:31 -0800)
committerPaul Betts <paul@paulbetts.org>
Sat, 7 Feb 2015 00:32:27 +0000 (16:32 -0800)
atom/browser/api/atom_api_window.h
atom/browser/native_window.h
atom/browser/native_window_views.cc
atom/browser/native_window_views.h

index d81a3470b7dfd9b4e66b6e72a7ec82c1fd5fb1af..70609d9894a50499fbb98dfed347e4527e1323d5 100644 (file)
@@ -118,7 +118,8 @@ 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 SetOverlayIcon(const gfx::ImageSkia& overlay,
+                      const std::string& description);
   void SetAutoHideMenuBar(bool auto_hide);
   bool IsMenuBarAutoHide();
   void SetMenuBarVisibility(bool visible);
index 0a9ecaf00dbde4dedf6721b14411c1ee9a3d1420..8048b170d2c94bcbefc8f88d993e0fc7cd024f7f 100644 (file)
@@ -142,7 +142,8 @@ 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 void SetOverlayIcon(const gfx::ImageSkia& overlay,
+                              const std::string& description) = 0;
 
   virtual bool IsClosed() const { return is_closed_; }
   virtual void OpenDevTools();
index 3d3b857ec36561fae2232e8efd3281fe1667a0e2..ccb760a889424d2f1b8fe8848bf556648b607dac 100644 (file)
@@ -613,7 +613,9 @@ void NativeWindowViews::SetProgressBar(double progress) {
 #endif
 }
 
-void NativeWindowViews::SetOverlayIcon(gfx::ImageSkia& overlay, const std::string& description) {
+void NativeWindowViews::SetOverlayIcon(
+  const gfx::ImageSkia& overlay,
+  const std::string& description) {
 #if defined(OS_WIN)
   if (base::win::GetVersion() < base::win::VERSION_WIN7)
     return;
@@ -624,8 +626,12 @@ void NativeWindowViews::SetOverlayIcon(gfx::ImageSkia& overlay, const std::strin
       FAILED(taskbar->HrInit()))) {
     return;
   }
+
   HWND frame = views::HWNDForNativeWindow(GetNativeWindow());
-  taskbar->SetOverlayIcon(frame, IconUtil::CreateHICONFromSkiaBitmap(overlay.AsBitmap()), description);
+
+  taskbar->SetOverlayIcon(frame,
+    IconUtil::CreateHICONFromSkiaBitmap(overlay.AsBitmap()),
+    description);
 #endif
 }
 
index e5fb863283585a08d912dc6c5348c0cede5ed4f3..5ab93f905e28313940d904fe2ac5d9804f34f7a3 100644 (file)
@@ -73,7 +73,8 @@ class NativeWindowViews : public NativeWindow,
   bool IsKiosk() override;
   void SetMenu(ui::MenuModel* menu_model) override;
   gfx::NativeWindow GetNativeWindow() override;
-  void SetOverlayIcon(gfx::ImageSkia& overlay, std::string& description) override;
+  void SetOverlayIcon(const gfx::ImageSkia& overlay,
+                      const std::string& description) override;
   void SetProgressBar(double value) override;
   void SetAutoHideMenuBar(bool auto_hide) override;
   bool IsMenuBarAutoHide() override;