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

Unified Diff: content/shell/renderer/test_runner/event_sender.cc

Issue 1113783002: Use Local instead of Handle in src/content/* (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
Index: content/shell/renderer/test_runner/event_sender.cc
diff --git a/content/shell/renderer/test_runner/event_sender.cc b/content/shell/renderer/test_runner/event_sender.cc
index e54a95872fe3f239c7419605f20afb26038ba3c8..ab9af232823194aae2e55c1148992fd51ab838b4 100644
--- a/content/shell/renderer/test_runner/event_sender.cc
+++ b/content/shell/renderer/test_runner/event_sender.cc
@@ -117,7 +117,7 @@ int GetKeyModifiers(const std::vector<std::string>& modifier_names) {
return modifiers;
}
-int GetKeyModifiersFromV8(v8::Handle<v8::Value> value) {
+int GetKeyModifiersFromV8(v8::Local<v8::Value> value) {
std::vector<std::string> modifier_names;
if (value->IsString()) {
modifier_names.push_back(gin::V8ToString(value));
@@ -483,7 +483,7 @@ void EventSenderBindings::Install(base::WeakPtr<EventSender> sender,
WebFrame* frame) {
v8::Isolate* isolate = blink::mainThreadIsolate();
v8::HandleScope handle_scope(isolate);
- v8::Handle<v8::Context> context = frame->mainWorldScriptContext();
+ v8::Local<v8::Context> context = frame->mainWorldScriptContext();
if (context.IsEmpty())
return;
@@ -493,7 +493,7 @@ void EventSenderBindings::Install(base::WeakPtr<EventSender> sender,
gin::CreateHandle(isolate, new EventSenderBindings(sender));
if (bindings.IsEmpty())
return;
- v8::Handle<v8::Object> global = context->Global();
+ v8::Local<v8::Object> global = context->Global();
global->Set(gin::StringToV8(isolate, "eventSender"), bindings.ToV8());
}
@@ -931,7 +931,7 @@ void EventSenderBindings::ScheduleAsynchronousKeyDown(gin::Arguments* args) {
int location = DOMKeyLocationStandard;
args->GetNext(&code_str);
if (!args->PeekNext().IsEmpty()) {
- v8::Handle<v8::Value> value;
+ v8::Local<v8::Value> value;
args->GetNext(&value);
modifiers = GetKeyModifiersFromV8(value);
if (!args->PeekNext().IsEmpty())
@@ -978,7 +978,7 @@ void EventSenderBindings::KeyDown(gin::Arguments* args) {
int location = DOMKeyLocationStandard;
args->GetNext(&code_str);
if (!args->PeekNext().IsEmpty()) {
- v8::Handle<v8::Value> value;
+ v8::Local<v8::Value> value;
args->GetNext(&value);
modifiers = GetKeyModifiersFromV8(value);
if (!args->PeekNext().IsEmpty())
@@ -2381,7 +2381,7 @@ void EventSender::InitMouseWheelEvent(gin::Arguments* args,
if (!args->PeekNext().IsEmpty()) {
args->GetNext(&has_precise_scrolling_deltas);
if (!args->PeekNext().IsEmpty()) {
- v8::Handle<v8::Value> value;
+ v8::Local<v8::Value> value;
args->GetNext(&value);
modifiers = GetKeyModifiersFromV8(value);
if (!args->PeekNext().IsEmpty())

Powered by Google App Engine
This is Rietveld 408576698