]> khamidou — GitHub mirrors - electron.git/commitdiff
Style fixups
authorPaul Betts <paul@paulbetts.org>
Wed, 11 Feb 2015 01:14:26 +0000 (17:14 -0800)
committerPaul Betts <paul@paulbetts.org>
Wed, 11 Feb 2015 01:14:26 +0000 (17:14 -0800)
atom/browser/api/atom_api_window.cc
atom/browser/native_window_mac.h
atom/browser/native_window_mac.mm
atom/browser/native_window_views.cc
docs/api/browser-window.md

index e0e1f5d6da563b79a6b14dedf7d08b8e230467de..81a2d37305ff1c306920fbcfddbe4362055274e1 100644 (file)
@@ -2,10 +2,6 @@
 // Use of this source code is governed by the MIT license that can be
 // found in the LICENSE file.
 
-namespace gfx {
-class Image;
-}
-
 #include "atom/browser/api/atom_api_window.h"
 
 #include "atom/browser/api/atom_api_web_contents.h"
@@ -13,8 +9,8 @@ class Image;
 #include "atom/browser/native_window.h"
 #include "atom/common/native_mate_converters/gfx_converter.h"
 #include "atom/common/native_mate_converters/gurl_converter.h"
-#include "atom/common/native_mate_converters/string16_converter.h"
 #include "atom/common/native_mate_converters/image_converter.h"
+#include "atom/common/native_mate_converters/string16_converter.h"
 #include "content/public/browser/render_process_host.h"
 #include "native_mate/callback.h"
 #include "native_mate/constructor.h"
@@ -406,7 +402,7 @@ void Window::SetProgressBar(double progress) {
 }
 
 void Window::SetOverlayIcon(const gfx::Image& overlay,
-  const std::string& description) {
+                            const std::string& description) {
   window_->SetOverlayIcon(overlay, description);
 }
 
index a12f06cbe9b63544623dca5069375a2c9eb7118d..884ab9899b459eb57be94310c4352235b55d1077 100644 (file)
@@ -72,7 +72,7 @@ class NativeWindowMac : public NativeWindow {
   gfx::NativeWindow GetNativeWindow() override;
   void SetProgressBar(double progress) override;
   void SetOverlayIcon(const gfx::Image& overlay,
-    const std::string& description) override;
+                      const std::string& description) override;
   void ShowDefinitionForSelection() override;
 
   // Returns true if |point| in local Cocoa coordinate system falls within
index 5b36370a4a28c922a7c7d6deb25355abbf9d2500..cc0a4393f2e6374745c7dbb1f437c5c4b8fbd399 100644 (file)
@@ -678,8 +678,8 @@ void NativeWindowMac::SetProgressBar(double progress) {
   [dock_tile display];
 }
 
-void NativeWindowMac::SetOverlayIcon(const gfx::Image& overlay, 
-  const std::string& description) {
+void NativeWindowMac::SetOverlayIcon(const gfx::Image& overlay,
+                                     const std::string& description) {
 }
 
 void NativeWindowMac::ShowDefinitionForSelection() {
index 89246c3ef1ffb5f7f26c39e5b489ba6eff8c3b45..af0c1520c0981700338c6e489bea2eca3a02a88d 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <string>
 #include <vector>
+
 #include "atom/browser/ui/views/menu_bar.h"
 #include "atom/browser/ui/views/menu_layout.h"
 #include "atom/common/draggable_region.h"
@@ -51,8 +52,8 @@
 #include "base/win/scoped_comptr.h"
 #include "base/win/windows_version.h"
 #include "ui/base/win/shell.h"
-#include "ui/gfx/win/dpi.h"
 #include "ui/gfx/icon_util.h"
+#include "ui/gfx/win/dpi.h"
 #include "ui/views/win/hwnd_util.h"
 #endif
 
@@ -614,9 +615,8 @@ void NativeWindowViews::SetProgressBar(double progress) {
 #endif
 }
 
-void NativeWindowViews::SetOverlayIcon(
-  const gfx::Image& overlay,
-  const std::string& description) {
+void NativeWindowViews::SetOverlayIcon(const gfx::Image& overlay,
+                                       const std::string& description) {
 #if defined(OS_WIN)
   if (base::win::GetVersion() < base::win::VERSION_WIN7)
     return;
@@ -632,8 +632,8 @@ void NativeWindowViews::SetOverlayIcon(
 
   std::wstring wstr = std::wstring(description.begin(), description.end());
   taskbar->SetOverlayIcon(frame,
-    IconUtil::CreateHICONFromSkBitmap(overlay.AsBitmap()),
-    wstr.c_str());
+      IconUtil::CreateHICONFromSkBitmap(overlay.AsBitmap()),
+      wstr.c_str());
 #endif
 }
 
index d6725bcf405de3351981a8e8e07a4866c8b4aef3..51984b3749611da31ce7e0c5aae00c1fc5398b62 100644 (file)
@@ -543,7 +543,6 @@ it will assume `app.getName().desktop`.
 ### BrowserWindow.setOverlayIcon(overlay, description)
 
 * `overlay` [Image](image.md) - the icon to display on the bottom right corner of the Taskbar icon. If this parameter is `null`, the overlay is cleared.
-
 * `description` String - a description that will be provided to Accessibility screenreaders
 
 Sets a 16px overlay onto the current Taskbar icon, usually used to convey some sort of application status or to passively notify the user.