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

Unified Diff: Source/bindings/core/v8/V8NPUtils.cpp

Issue 1071963002: Replace Handle<> with Local<> in bindings/core/v8 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.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 | « Source/bindings/core/v8/V8NPUtils.h ('k') | Source/bindings/core/v8/V8ValueCache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/V8NPUtils.cpp
diff --git a/Source/bindings/core/v8/V8NPUtils.cpp b/Source/bindings/core/v8/V8NPUtils.cpp
index e61b3b40709aa7036b2d952238180dec7ec52b16..e00f37ce079846454a517970e7d75f240eca07a4 100644
--- a/Source/bindings/core/v8/V8NPUtils.cpp
+++ b/Source/bindings/core/v8/V8NPUtils.cpp
@@ -63,21 +63,21 @@ void convertV8ObjectToNPVariant(v8::Isolate* isolate, v8::Local<v8::Value> objec
} else if (object->IsUndefined()) {
VOID_TO_NPVARIANT(*result);
} else if (object->IsString()) {
- v8::Handle<v8::String> str = object.As<v8::String>();
+ v8::Local<v8::String> str = object.As<v8::String>();
int length = str->Utf8Length() + 1;
char* utf8Chars = reinterpret_cast<char*>(malloc(length));
str->WriteUtf8(utf8Chars, length, 0, v8::String::HINT_MANY_WRITES_EXPECTED);
STRINGN_TO_NPVARIANT(utf8Chars, length-1, *result);
} else if (object->IsObject()) {
LocalDOMWindow* window = currentDOMWindow(isolate);
- NPObject* npobject = npCreateV8ScriptObject(isolate, 0, v8::Handle<v8::Object>::Cast(object), window);
+ NPObject* npobject = npCreateV8ScriptObject(isolate, 0, v8::Local<v8::Object>::Cast(object), window);
if (npobject)
_NPN_RegisterObject(npobject, owner);
OBJECT_TO_NPVARIANT(npobject, *result);
}
}
-v8::Handle<v8::Value> convertNPVariantToV8Object(v8::Isolate* isolate, const NPVariant* variant, NPObject* owner)
+v8::Local<v8::Value> convertNPVariantToV8Object(v8::Isolate* isolate, const NPVariant* variant, NPObject* owner)
{
NPVariantType type = variant->type;
@@ -108,7 +108,7 @@ v8::Handle<v8::Value> convertNPVariantToV8Object(v8::Isolate* isolate, const NPV
}
// Helper function to create an NPN String Identifier from a v8 string.
-NPIdentifier getStringIdentifier(v8::Handle<v8::String> str)
+NPIdentifier getStringIdentifier(v8::Local<v8::String> str)
{
const int kStackBufferSize = 100;
« no previous file with comments | « Source/bindings/core/v8/V8NPUtils.h ('k') | Source/bindings/core/v8/V8ValueCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698