Return node::Buffer as a printToPDF callback result.
This commit is contained in:
parent
ab40da3f31
commit
ac62871645
4 changed files with 25 additions and 71 deletions
|
@ -52,7 +52,7 @@ class WebContents : public mate::EventEmitter,
|
|||
public content::WebContentsObserver,
|
||||
public content::GpuDataManagerObserver {
|
||||
public:
|
||||
typedef base::Callback<void(int)> PrintToPDFCallback;
|
||||
typedef base::Callback<void(v8::Local<v8::Value>)> PrintToPDFCallback;
|
||||
|
||||
// Create from an existing WebContents.
|
||||
static mate::Handle<WebContents> CreateFrom(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue