Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Unified Diff: gin/dictionary.h

Issue 1112923003: Replace Handle<> with Local in remaining gin/* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gin/converter_unittest.cc ('k') | gin/dictionary.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gin/dictionary.h
diff --git a/gin/dictionary.h b/gin/dictionary.h
index 972108fbb438f72608f4f9a52d4fd7e6d6e2f218..efebfa85a702666d6efe8fe4285caafc858e49f1 100644
--- a/gin/dictionary.h
+++ b/gin/dictionary.h
@@ -25,14 +25,14 @@ namespace gin {
class GIN_EXPORT Dictionary {
public:
explicit Dictionary(v8::Isolate* isolate);
- Dictionary(v8::Isolate* isolate, v8::Handle<v8::Object> object);
+ Dictionary(v8::Isolate* isolate, v8::Local<v8::Object> object);
~Dictionary();
static Dictionary CreateEmpty(v8::Isolate* isolate);
template<typename T>
bool Get(const std::string& key, T* out) {
- v8::Handle<v8::Value> val = object_->Get(StringToV8(isolate_, key));
+ v8::Local<v8::Value> val = object_->Get(StringToV8(isolate_, key));
return ConvertFromV8(isolate_, val, out);
}
@@ -48,15 +48,15 @@ class GIN_EXPORT Dictionary {
// TODO(aa): Remove this. Instead, get via FromV8(), Set(), and Get().
v8::Isolate* isolate_;
- v8::Handle<v8::Object> object_;
+ v8::Local<v8::Object> object_;
};
template<>
struct GIN_EXPORT Converter<Dictionary> {
- static v8::Handle<v8::Value> ToV8(v8::Isolate* isolate,
+ static v8::Local<v8::Value> ToV8(v8::Isolate* isolate,
Dictionary val);
static bool FromV8(v8::Isolate* isolate,
- v8::Handle<v8::Value> val,
+ v8::Local<v8::Value> val,
Dictionary* out);
};
« no previous file with comments | « gin/converter_unittest.cc ('k') | gin/dictionary.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698