Modify Window API to be more consistent.

* '_' becomes '-'
* removes 'position' field
* adds 'center' method.
This commit is contained in:
Cheng Zhao 2013-05-10 20:34:05 +08:00
parent e6a9add691
commit 34e9132b68
8 changed files with 30 additions and 24 deletions

View file

@ -302,9 +302,8 @@ bool NativeWindowMac::IsAlwaysOnTop() {
return [window() level] == NSFloatingWindowLevel;
}
void NativeWindowMac::SetPosition(const std::string& position) {
if (position == "center")
[window() center];
void NativeWindowMac::Center() {
[window() center];
}
void NativeWindowMac::SetPosition(const gfx::Point& position) {