setOffscreenRender and api docs added

This commit is contained in:
gellert 2015-08-29 00:45:00 +02:00
parent e4c01f3187
commit 58081ca9e9
5 changed files with 65 additions and 19 deletions

View file

@ -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)