Image from icon node-style callback (#2)
* Try implementing node-style callbacks * Add locker and handle scope
This commit is contained in:
parent
2e85ff1f57
commit
1b4ee6e0d8
2 changed files with 16 additions and 3 deletions
|
@ -12,6 +12,7 @@
|
|||
#include "atom/browser/atom_browser_client.h"
|
||||
#include "atom/browser/browser.h"
|
||||
#include "atom/browser/browser_observer.h"
|
||||
#include "atom/common/api/atom_api_native_image.h"
|
||||
#include "atom/common/native_mate_converters/callback.h"
|
||||
#include "chrome/browser/icon_loader.h"
|
||||
#include "chrome/browser/process_singleton.h"
|
||||
|
@ -44,7 +45,7 @@ class App : public AtomBrowserClient::Delegate,
|
|||
public BrowserObserver,
|
||||
public content::GpuDataManagerObserver {
|
||||
public:
|
||||
using FileIconCallback = base::Callback<void(const gfx::Image&)>;
|
||||
using FileIconCallback = base::Callback<void(v8::Local<v8::Value>, const gfx::Image&)>;
|
||||
|
||||
static mate::Handle<App> Create(v8::Isolate* isolate);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue