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

Unified Diff: chrome/browser/chromeos/input_method/input_method_engine_interface.h

Issue 346513003: Adds the legacy KeyboardEvent.keyCode attribute for extension IMEs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make keyCode attribute optional, and fix tests. Created 6 years, 6 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/chromeos/input_method/input_method_engine_interface.h
diff --git a/chrome/browser/chromeos/input_method/input_method_engine_interface.h b/chrome/browser/chromeos/input_method/input_method_engine_interface.h
index 67a972cab03238b7c81eebea42c946ac9572c77c..ec01921026da7b6070ceee657d42df34a68f397f 100644
--- a/chrome/browser/chromeos/input_method/input_method_engine_interface.h
+++ b/chrome/browser/chromeos/input_method/input_method_engine_interface.h
@@ -9,6 +9,7 @@
#include <vector>
#include "ui/base/ime/chromeos/ime_bridge.h"
+#include "ui/events/keycodes/keyboard_codes.h"
Seigo Nonaka 2014/06/20 03:16:02 nit: Do you need this header in header file? If no
Shu Chen 2014/06/20 06:11:58 Done.
class GURL;
@@ -30,6 +31,7 @@ class InputMethodEngineInterface : public IMEEngineHandlerInterface {
std::string type;
std::string key;
std::string code;
+ int key_code; // only used by on-screen keyboards.
std::string extension_id;
bool alt_key;
bool ctrl_key;

Powered by Google App Engine
This is Rietveld 408576698