mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Make callback aligns node.js style.
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user