Add BrowserWindow.getClientBounds API

This commit is contained in:
Kevin Sawicki 2016-07-28 18:19:17 -07:00
parent cdfbeb1a0a
commit 48cc13d009
7 changed files with 21 additions and 0 deletions

View file

@ -366,6 +366,10 @@ gfx::Rect Window::GetBounds() {
return window_->GetBounds();
}
gfx::Rect Window::GetContentBounds() {
return window_->GetContentBounds();
}
void Window::SetSize(int width, int height, mate::Arguments* args) {
bool animate = false;
args->GetNext(&animate);
@ -785,6 +789,7 @@ void Window::BuildPrototype(v8::Isolate* isolate,
.SetMethod("setBounds", &Window::SetBounds)
.SetMethod("getSize", &Window::GetSize)
.SetMethod("setSize", &Window::SetSize)
.SetMethod("getContentBounds", &Window::GetContentBounds)
.SetMethod("getContentSize", &Window::GetContentSize)
.SetMethod("setContentSize", &Window::SetContentSize)
.SetMethod("setMinimumSize", &Window::SetMinimumSize)