Expose Print API to webContents and webView.
Also move the print implementation from window to webContents.
This commit is contained in:
parent
57580e00f9
commit
47eac062f6
11 changed files with 62 additions and 65 deletions
|
@ -93,6 +93,7 @@ class WebContents : public mate::EventEmitter,
|
|||
void UnregisterServiceWorker(const base::Callback<void(bool)>&);
|
||||
void SetAudioMuted(bool muted);
|
||||
bool IsAudioMuted();
|
||||
void Print(mate::Arguments* args);
|
||||
|
||||
// Print current page as PDF.
|
||||
void PrintToPDF(const base::DictionaryValue& setting,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue