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

Side by Side 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: rebased. 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_INTERFACE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_INTERFACE_H_
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_INTERFACE_H_ 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_INTERFACE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 12 matching lines...) Expand all
23 // API. 23 // API.
24 class InputMethodEngineInterface : public IMEEngineHandlerInterface { 24 class InputMethodEngineInterface : public IMEEngineHandlerInterface {
25 public: 25 public:
26 struct KeyboardEvent { 26 struct KeyboardEvent {
27 KeyboardEvent(); 27 KeyboardEvent();
28 virtual ~KeyboardEvent(); 28 virtual ~KeyboardEvent();
29 29
30 std::string type; 30 std::string type;
31 std::string key; 31 std::string key;
32 std::string code; 32 std::string code;
33 int key_code; // only used by on-screen keyboards.
33 std::string extension_id; 34 std::string extension_id;
34 bool alt_key; 35 bool alt_key;
35 bool ctrl_key; 36 bool ctrl_key;
36 bool shift_key; 37 bool shift_key;
37 bool caps_lock; 38 bool caps_lock;
38 }; 39 };
39 40
40 enum { 41 enum {
41 MENU_ITEM_MODIFIED_LABEL = 0x0001, 42 MENU_ITEM_MODIFIED_LABEL = 0x0001,
42 MENU_ITEM_MODIFIED_STYLE = 0x0002, 43 MENU_ITEM_MODIFIED_STYLE = 0x0002,
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 size_t number_of_chars, 247 size_t number_of_chars,
247 std::string* error) = 0; 248 std::string* error) = 0;
248 249
249 // Hides the input view window (from API call). 250 // Hides the input view window (from API call).
250 virtual void HideInputView() = 0; 251 virtual void HideInputView() = 0;
251 }; 252 };
252 253
253 } // namespace chromeos 254 } // namespace chromeos
254 255
255 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_INTERFACE_H_ 256 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_INTERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698