Use native_mate to simplify dialog api.

This commit is contained in:
Cheng Zhao 2014-04-16 15:14:44 +08:00
parent 6e2bf824f0
commit aa1efe70e2
10 changed files with 189 additions and 143 deletions

View file

@ -9,8 +9,8 @@
#include <map>
#include <vector>
#include "atom/common/v8/scoped_persistent.h"
#include "base/basictypes.h"
#include "native_mate/scoped_persistent.h"
#include "native_mate/wrappable.h"
namespace atom {
@ -40,6 +40,9 @@ class IDWeakMap : public mate::Wrappable {
IDWeakMap* self);
int32_t next_id_;
typedef scoped_refptr<mate::RefCountedPersistent<v8::Object> >
RefCountedV8Object;
std::map<int32_t, RefCountedV8Object> map_;
DISALLOW_COPY_AND_ASSIGN(IDWeakMap);