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

Unified Diff: chrome/browser/extensions/api/input_ime/input_ime_api.cc

Issue 11299270: Add a parameter that specifies whether onKeyEvent is asynchronous (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove extra function Created 8 years, 1 month 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/api/input_ime/input_ime_api.cc
diff --git a/chrome/browser/extensions/api/input_ime/input_ime_api.cc b/chrome/browser/extensions/api/input_ime/input_ime_api.cc
index 4a35c31a1e374950f48f56a1ff4e8c910897ef0f..8f3f3b8aa086a7292bdefbca2117a44f6cd6a6a4 100644
--- a/chrome/browser/extensions/api/input_ime/input_ime_api.cc
+++ b/chrome/browser/extensions/api/input_ime/input_ime_api.cc
@@ -416,7 +416,7 @@ chromeos::InputMethodEngine* InputImeEventRouter::GetActiveEngine(
return NULL;
}
-void InputImeEventRouter::OnEventHandled(
+void InputImeEventRouter::OnKeyEventHandled(
const std::string& extension_id,
const std::string& request_id,
bool handled) {
@@ -808,14 +808,14 @@ bool UpdateMenuItemsFunction::RunImpl() {
return true;
}
-bool InputEventHandled::RunImpl() {
+bool KeyEventHandled::RunImpl() {
std::string request_id_str;
EXTENSION_FUNCTION_VALIDATE(args_->GetString(0, &request_id_str));
bool handled = false;
EXTENSION_FUNCTION_VALIDATE(args_->GetBoolean(1, &handled));
- InputImeEventRouter::GetInstance()->OnEventHandled(
+ InputImeEventRouter::GetInstance()->OnKeyEventHandled(
extension_id(), request_id_str, handled);
return true;

Powered by Google App Engine
This is Rietveld 408576698