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

Unified Diff: gin/wrappable.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/try_catch.cc ('k') | gin/wrappable.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gin/wrappable.h
diff --git a/gin/wrappable.h b/gin/wrappable.h
index ea4edcfffcc864f814c974502f80cf3f0bb36c11..cd4d30e91552702650b8ec995bedaea1183f1145 100644
--- a/gin/wrappable.h
+++ b/gin/wrappable.h
@@ -15,7 +15,7 @@ namespace gin {
namespace internal {
GIN_EXPORT void* FromV8Impl(v8::Isolate* isolate,
- v8::Handle<v8::Value> val,
+ v8::Local<v8::Value> val,
WrapperInfo* info);
} // namespace internal
@@ -64,7 +64,7 @@ class GIN_EXPORT WrappableBase {
virtual ObjectTemplateBuilder GetObjectTemplateBuilder(v8::Isolate* isolate);
- v8::Handle<v8::Object> GetWrapperImpl(v8::Isolate* isolate,
+ v8::Local<v8::Object> GetWrapperImpl(v8::Isolate* isolate,
WrapperInfo* wrapper_info);
private:
@@ -85,7 +85,7 @@ class Wrappable : public WrappableBase {
// Retrieve (or create) the v8 wrapper object cooresponding to this object.
// To customize the wrapper created for a subclass, override GetWrapperInfo()
// instead of overriding this function.
- v8::Handle<v8::Object> GetWrapper(v8::Isolate* isolate) {
+ v8::Local<v8::Object> GetWrapper(v8::Isolate* isolate) {
return GetWrapperImpl(isolate, &T::kWrapperInfo);
}
@@ -102,11 +102,11 @@ class Wrappable : public WrappableBase {
template<typename T>
struct Converter<T*, typename base::enable_if<
base::is_convertible<T*, WrappableBase*>::value>::type> {
- static v8::Handle<v8::Value> ToV8(v8::Isolate* isolate, T* val) {
+ static v8::Local<v8::Value> ToV8(v8::Isolate* isolate, T* val) {
return val->GetWrapper(isolate);
}
- static bool FromV8(v8::Isolate* isolate, v8::Handle<v8::Value> val, T** out) {
+ static bool FromV8(v8::Isolate* isolate, v8::Local<v8::Value> val, T** out) {
*out = static_cast<T*>(static_cast<WrappableBase*>(
internal::FromV8Impl(isolate, val, &T::kWrapperInfo)));
return *out != NULL;
« no previous file with comments | « gin/try_catch.cc ('k') | gin/wrappable.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698