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

Unified Diff: chrome/browser/extensions/extension_input_ui_api.cc

Issue 7649006: more changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix another typo Created 9 years, 4 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: chrome/browser/extensions/extension_input_ui_api.cc
diff --git a/chrome/browser/extensions/extension_input_ui_api.cc b/chrome/browser/extensions/extension_input_ui_api.cc
index 0b86a0c24457a68c08d55534e7ce6c29ad9a8e40..c6c84d4837d98c87754fb1f315288334bed5ee2d 100644
--- a/chrome/browser/extensions/extension_input_ui_api.cc
+++ b/chrome/browser/extensions/extension_input_ui_api.cc
@@ -128,10 +128,10 @@ void ExtensionInputUiEventRouter::OnSetCursorLocation(
return;
ListValue args;
- args.Append(Value::CreateIntegerValue(x));
- args.Append(Value::CreateIntegerValue(y));
- args.Append(Value::CreateIntegerValue(width));
- args.Append(Value::CreateIntegerValue(height));
+ args.Append(base::NumberValue::New(x));
+ args.Append(base::NumberValue::New(y));
+ args.Append(base::NumberValue::New(width));
+ args.Append(base::NumberValue::New(height));
std::string json_args;
base::JSONWriter::Write(&args, false, &json_args);
@@ -146,7 +146,7 @@ void ExtensionInputUiEventRouter::OnUpdateAuxiliaryText(
return;
ListValue args;
- args.Append(Value::CreateStringValue(visible ? utf8_text : ""));
+ args.Append(base::StringValue::New(visible ? utf8_text : ""));
std::string json_args;
base::JSONWriter::Write(&args, false, &json_args);
@@ -173,7 +173,7 @@ void ExtensionInputUiEventRouter::OnUpdateLookupTable(
lookup_table.candidates.size());
for (size_t i = begin; i < end; i++) {
- candidates->Append(Value::CreateStringValue(lookup_table.candidates[i]));
+ candidates->Append(base::StringValue::New(lookup_table.candidates[i]));
}
dict->Set("candidates", candidates);
« no previous file with comments | « chrome/browser/extensions/extension_input_method_api.cc ('k') | chrome/browser/extensions/extension_management_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698