setOffscreenRender and api docs added
This commit is contained in:
parent
e4c01f3187
commit
58081ca9e9
5 changed files with 65 additions and 19 deletions
|
@ -440,6 +440,10 @@ void Window::CapturePage(mate::Arguments* args) {
|
|||
rect, base::Bind(&OnCapturePageDone, args->isolate(), callback));
|
||||
}
|
||||
|
||||
void Window::SetOffscreenRender(bool isOffscreen) {
|
||||
window_->SetOffscreenRender(isOffscreen);
|
||||
}
|
||||
|
||||
void Window::SetProgressBar(double progress) {
|
||||
window_->SetProgressBar(progress);
|
||||
}
|
||||
|
@ -602,6 +606,7 @@ void Window::BuildPrototype(v8::Isolate* isolate,
|
|||
#if defined(OS_MACOSX)
|
||||
.SetMethod("showDefinitionForSelection",
|
||||
&Window::ShowDefinitionForSelection)
|
||||
.SetMethod("setOffscreenRender", &Window::SetOffscreenRender)
|
||||
#endif
|
||||
.SetProperty("id", &Window::ID, true)
|
||||
.SetProperty("webContents", &Window::WebContents, true)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue