Add callback function in printToPDF API.
This commit is contained in:
parent
ce8bbb689c
commit
8572ccb807
5 changed files with 61 additions and 19 deletions
|
@ -55,6 +55,7 @@ class NativeWindow : public CommonWebContentsDelegate,
|
|||
public content::NotificationObserver {
|
||||
public:
|
||||
typedef base::Callback<void(const SkBitmap& bitmap)> CapturePageCallback;
|
||||
typedef base::Callback<void(int)> PrintToPDFCallback;
|
||||
|
||||
class DialogScope {
|
||||
public:
|
||||
|
@ -158,7 +159,8 @@ class NativeWindow : public CommonWebContentsDelegate,
|
|||
virtual void Print(bool silent, bool print_background);
|
||||
|
||||
// Print current page as PDF.
|
||||
virtual void PrintToPDF(const mate::Dictionary& options);
|
||||
virtual void PrintToPDF(const mate::Dictionary& options,
|
||||
const PrintToPDFCallback& callback);
|
||||
|
||||
// Show popup dictionary.
|
||||
virtual void ShowDefinitionForSelection();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue