Modify Window API to be more consistent.
* '_' becomes '-' * removes 'position' field * adds 'center' method.
This commit is contained in:
parent
e6a9add691
commit
34e9132b68
8 changed files with 30 additions and 24 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue