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

Unified Diff: gin/handle.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/function_template.cc ('k') | gin/interceptor_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gin/handle.h
diff --git a/gin/handle.h b/gin/handle.h
index 01db6606f194892e909bbcc8726d48452675bbaa..e553e4b6428c874961cb4992dd34068764655100 100644
--- a/gin/handle.h
+++ b/gin/handle.h
@@ -18,7 +18,7 @@ class Handle {
public:
Handle() : object_(NULL) {}
- Handle(v8::Handle<v8::Value> wrapper, T* object)
+ Handle(v8::Local<v8::Value> wrapper, T* object)
: wrapper_(wrapper),
object_(object) {
}
@@ -31,21 +31,21 @@ class Handle {
}
T* operator->() const { return object_; }
- v8::Handle<v8::Value> ToV8() const { return wrapper_; }
+ v8::Local<v8::Value> ToV8() const { return wrapper_; }
T* get() const { return object_; }
private:
- v8::Handle<v8::Value> wrapper_;
+ v8::Local<v8::Value> wrapper_;
T* object_;
};
template<typename T>
struct Converter<gin::Handle<T> > {
- static v8::Handle<v8::Value> ToV8(v8::Isolate* isolate,
+ static v8::Local<v8::Value> ToV8(v8::Isolate* isolate,
const gin::Handle<T>& val) {
return val.ToV8();
}
- static bool FromV8(v8::Isolate* isolate, v8::Handle<v8::Value> val,
+ static bool FromV8(v8::Isolate* isolate, v8::Local<v8::Value> val,
gin::Handle<T>* out) {
T* object = NULL;
if (!Converter<T*>::FromV8(isolate, val, &object)) {
@@ -60,7 +60,7 @@ struct Converter<gin::Handle<T> > {
// without having to write out the type of the object explicitly.
template<typename T>
gin::Handle<T> CreateHandle(v8::Isolate* isolate, T* object) {
- v8::Handle<v8::Object> wrapper = object->GetWrapper(isolate);
+ v8::Local<v8::Object> wrapper = object->GetWrapper(isolate);
if (wrapper.IsEmpty())
return gin::Handle<T>();
return gin::Handle<T>(wrapper, object);
« no previous file with comments | « gin/function_template.cc ('k') | gin/interceptor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698