Add BrowserWindow.getClientBounds API
This commit is contained in:
parent
cdfbeb1a0a
commit
48cc13d009
7 changed files with 21 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue