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

Side by Side Diff: chrome/browser/chromeos/input_method/input_method_engine.h

Issue 13060003: Extract Extension IME related utility. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressing comments Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_H_
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_H_ 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 namespace chromeos { 11 namespace chromeos {
12 12
13 namespace input_method { 13 namespace input_method {
14 struct KeyEventHandle; 14 struct KeyEventHandle;
15 } // namespace input_method 15 } // namespace input_method
16 16
17 extern const char* kExtensionImePrefix;
18
19 // InputMethodEngine is used to translate from the Chrome IME API to the native 17 // InputMethodEngine is used to translate from the Chrome IME API to the native
20 // API. 18 // API.
21 class InputMethodEngine { 19 class InputMethodEngine {
22 public: 20 public:
23 struct KeyboardEvent { 21 struct KeyboardEvent {
24 KeyboardEvent(); 22 KeyboardEvent();
25 virtual ~KeyboardEvent(); 23 virtual ~KeyboardEvent();
26 24
27 std::string type; 25 std::string type;
28 std::string key; 26 std::string key;
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 const char* engine_id, 220 const char* engine_id,
223 const char* description, 221 const char* description,
224 const char* language, 222 const char* language,
225 const std::vector<std::string>& layouts, 223 const std::vector<std::string>& layouts,
226 std::string* error); 224 std::string* error);
227 }; 225 };
228 226
229 } // namespace chromeos 227 } // namespace chromeos
230 228
231 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_H_ 229 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698