]> khamidou — GitHub mirrors - electron.git/commitdiff
Minor fixes of #1309
authorCheng Zhao <zcbenz@gmail.com>
Sun, 29 Mar 2015 12:40:02 +0000 (20:40 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Sun, 29 Mar 2015 12:40:02 +0000 (20:40 +0800)
* Line length should <= 80 cols.
* Add missing "s".

atom/browser/native_window_views.cc
docs/api/browser-window.md

index c3b0d916ce8e3905a1bb3b6efb45ebe49011b889..74f9129b468c8ed1bde7e7be74eb0ecf214a4aec 100644 (file)
@@ -683,10 +683,10 @@ bool NativeWindowViews::IsVisibleOnAllWorkspaces() {
   // Use the presence/absence of _NET_WM_STATE_STICKY in _NET_WM_STATE to
   // determine whether the current window is visible on all workspaces.
   XAtom sticky_atom = gfx::GetAtom("_NET_WM_STATE_STICKY");
-  std::vector<XAtom> atom_properties;
-  gfx::GetAtomArrayProperty(GetNativeWindow(), "_NET_WM_STATE", &atom_properties);
-  return std::find(atom_properties.begin(),
-                   atom_properties.end(), sticky_atom) != atom_properties.end();
+  std::vector<XAtom> properties;
+  gfx::GetAtomArrayProperty(GetNativeWindow(), "_NET_WM_STATE", &properties);
+  return std::find(properties.begin(),
+                   properties.end(), sticky_atom) != properties.end();
 #endif
   return false;
 }
index c23ed830bdff9f042d1bd71191dc982f71142ebb..5d8976a0e69d4fa357429a9464fc63eb25529429 100644 (file)
@@ -598,7 +598,7 @@ Sets whether the window should be visible on all workspaces.
 
 Returns whether the window is visible on all workspaces.
 
-**Note:** This API always return false on Windows.
+**Note:** This API always returns false on Windows.
 
 ## Class: WebContents