Add BrowserWindow.print() method.

This commit is contained in:
Cheng Zhao 2014-08-21 21:00:49 +08:00
parent 87d5b72b76
commit 11b9a06639
4 changed files with 33 additions and 19 deletions

View file

@ -97,11 +97,12 @@ class Window : public mate::EventEmitter,
void FocusOnWebView();
void BlurWebView();
bool IsWebViewFocused();
void CapturePage(mate::Arguments* args);
void SetRepresentedFilename(const std::string& filename);
std::string GetRepresentedFilename();
void SetDocumentEdited(bool edited);
bool IsDocumentEdited();
void CapturePage(mate::Arguments* args);
void Print();
// APIs for WebContents.
mate::Handle<WebContents> GetWebContents(v8::Isolate* isolate) const;