Make the extraSize of BrowserWindow.setAspectRatio optional
This commit is contained in:
parent
df35700b94
commit
72eb87a631
3 changed files with 10 additions and 6 deletions
|
@ -249,10 +249,6 @@ bool Window::IsFullscreen() {
|
|||
return window_->IsFullscreen();
|
||||
}
|
||||
|
||||
void Window::SetAspectRatio(double aspect_ratio, const gfx::Size& extraSize) {
|
||||
window_->SetAspectRatio(aspect_ratio, extraSize);
|
||||
}
|
||||
|
||||
void Window::SetBounds(const gfx::Rect& bounds) {
|
||||
window_->SetBounds(bounds);
|
||||
}
|
||||
|
@ -455,6 +451,12 @@ void Window::ShowDefinitionForSelection() {
|
|||
}
|
||||
#endif
|
||||
|
||||
void Window::SetAspectRatio(double aspect_ratio, mate::Arguments* args) {
|
||||
gfx::Size extra_size;
|
||||
args->GetNext(&extra_size);
|
||||
window_->SetAspectRatio(aspect_ratio, extra_size);
|
||||
}
|
||||
|
||||
void Window::SetVisibleOnAllWorkspaces(bool visible) {
|
||||
return window_->SetVisibleOnAllWorkspaces(visible);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue