Minor fixes of #1309

* Line length should <= 80 cols.
* Add missing "s".
This commit is contained in:
Cheng Zhao 2015-03-29 20:40:02 +08:00
parent 3b1be743ef
commit 9b68777b4b
2 changed files with 5 additions and 5 deletions

View 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;
}

View 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