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

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

Issue 7314019: Fix clang build break (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add header file Created 9 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/input_method/input_method_engine.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 namespace chromeos { 12 namespace chromeos {
13 13
14 extern const char* kExtensionImePrefix; 14 extern const char* kExtensionImePrefix;
15 15
16 // InputMethodEngine is used to translate from the Chrome IME API to the native 16 // InputMethodEngine is used to translate from the Chrome IME API to the native
17 // API. 17 // API.
18 class InputMethodEngine { 18 class InputMethodEngine {
19 public: 19 public:
20 struct KeyboardEvent { 20 struct KeyboardEvent {
21 KeyboardEvent();
22 virtual ~KeyboardEvent();
23
21 std::string type; 24 std::string type;
22 std::string key; 25 std::string key;
23 std::string key_code; 26 std::string key_code;
24 bool alt_key; 27 bool alt_key;
25 bool ctrl_key; 28 bool ctrl_key;
26 bool shift_key; 29 bool shift_key;
27 }; 30 };
28 31
29 struct MenuItem { 32 struct MenuItem {
33 MenuItem();
34 virtual ~MenuItem();
35
30 std::string id; 36 std::string id;
31 std::string label; 37 std::string label;
32 int style; 38 int style;
33 bool visible; 39 bool visible;
34 bool enabled; 40 bool enabled;
35 bool checked; 41 bool checked;
36 std::string icon; 42 std::string icon;
37 KeyboardEvent shortcut_key; 43 KeyboardEvent shortcut_key;
38 std::vector<MenuItem> children; 44 std::vector<MenuItem> children;
39 }; 45 };
40 46
41 struct InputContext { 47 struct InputContext {
42 int id; 48 int id;
43 std::string type; 49 std::string type;
44 }; 50 };
45 51
46 struct Candidate { 52 struct Candidate {
53 Candidate();
54 virtual ~Candidate();
55
47 std::string value; 56 std::string value;
48 int id; 57 int id;
49 std::string label; 58 std::string label;
50 std::string annotation; 59 std::string annotation;
51 std::vector<Candidate> candidates; 60 std::vector<Candidate> candidates;
52 }; 61 };
53 62
54 struct SegmentInfo { 63 struct SegmentInfo {
55 int start; 64 int start;
56 int end; 65 int end;
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 const char* description, 181 const char* description,
173 const char* language, 182 const char* language,
174 const std::vector<std::string>& layouts, 183 const std::vector<std::string>& layouts,
175 KeyboardEvent& shortcut_key, 184 KeyboardEvent& shortcut_key,
176 std::string* error); 185 std::string* error);
177 }; 186 };
178 187
179 } // namespace chromeos 188 } // namespace chromeos
180 189
181 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_H_ 190 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/input_method/input_method_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698