Expose Print API to webContents and webView.

Also move the print implementation from window to webContents.
This commit is contained in:
Haojian Wu 2015-06-13 21:23:45 +08:00
parent 57580e00f9
commit 47eac062f6
11 changed files with 62 additions and 65 deletions

View file

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