Make callback aligns node.js style.
This commit is contained in:
parent
93243ef223
commit
ccbe554ec0
2 changed files with 8 additions and 3 deletions
|
@ -52,7 +52,9 @@ class WebContents : public mate::EventEmitter,
|
|||
public content::WebContentsObserver,
|
||||
public content::GpuDataManagerObserver {
|
||||
public:
|
||||
typedef base::Callback<void(v8::Local<v8::Value>)> PrintToPDFCallback;
|
||||
// For node.js callback function type: function(error, buffer)
|
||||
typedef base::Callback<void(v8::Local<v8::Value>, 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