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

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: Code review fix Created 8 years 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 48304083f93003995a29721f4a1ac124a439d7db..63a0dfe23d4de84ca7f84eb3de04fdaa14f5d80e 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) {
@@ -820,14 +820,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;
« no previous file with comments | « chrome/browser/extensions/api/input_ime/input_ime_api.h ('k') | chrome/browser/extensions/extension_function_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698