OLD | NEW |
---|---|
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 // The header files provides APIs for monitoring and controlling input | 5 // The header files provides APIs for monitoring and controlling input |
6 // method UI status. The APIs encapsulate the APIs of IBus, the underlying | 6 // method UI status. The APIs encapsulate the APIs of IBus, the underlying |
7 // input method framework. | 7 // input method framework. |
8 | 8 |
9 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_IBUS_UI_CONTROLLER_H_ | 9 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_IBUS_UI_CONTROLLER_H_ |
10 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_IBUS_UI_CONTROLLER_H_ | 10 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_IBUS_UI_CONTROLLER_H_ |
11 #pragma once | 11 #pragma once |
12 | 12 |
13 #include <string> | 13 #include <string> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "base/basictypes.h" | 16 #include "base/basictypes.h" |
17 #include "base/observer_list.h" | 17 #include "base/observer_list.h" |
18 #include "third_party/mozc/session/candidates_lite.pb.h" | 18 #include "third_party/mozc/session/candidates_lite.pb.h" |
19 | 19 |
20 namespace chromeos { | 20 namespace chromeos { |
21 namespace input_method { | 21 namespace input_method { |
22 | 22 |
23 // A key for attaching the |ibus_service_panel_| object to |ibus_|. | 23 // A key for attaching the |ibus_service_panel_| object to |ibus_|. |
24 const char kPanelObjectKey[] = "panel-object"; | 24 const char kPanelObjectKey[] = "panel-object"; |
25 | 25 |
26 class InputMethodDescriptor; | |
27 typedef std::vector<InputMethodDescriptor> InputMethodDescriptors; | |
Jun Mukai
2012/04/16 06:57:53
Can we add this typedef here? The definition of I
| |
28 | |
26 // The struct represents the input method lookup table (list of candidates). | 29 // The struct represents the input method lookup table (list of candidates). |
27 // Used for InputMethodUpdateLookupTableMonitorFunction. | 30 // Used for InputMethodUpdateLookupTableMonitorFunction. |
28 struct InputMethodLookupTable { | 31 struct InputMethodLookupTable { |
29 enum Orientation { | 32 enum Orientation { |
30 kVertical, | 33 kVertical, |
31 kHorizontal, | 34 kHorizontal, |
32 }; | 35 }; |
33 | 36 |
34 InputMethodLookupTable(); | 37 InputMethodLookupTable(); |
35 | 38 |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
134 | 137 |
135 // Notifies that the page up button is clicked. |PageUp| signal will be | 138 // Notifies that the page up button is clicked. |PageUp| signal will be |
136 // sent to the ibus-daemon | 139 // sent to the ibus-daemon |
137 virtual void NotifyPageUp() = 0; | 140 virtual void NotifyPageUp() = 0; |
138 | 141 |
139 // Notifies that the page down button is clicked. |PageDown| signal will be | 142 // Notifies that the page down button is clicked. |PageDown| signal will be |
140 // sent to the ibus-daemon | 143 // sent to the ibus-daemon |
141 virtual void NotifyPageDown() = 0; | 144 virtual void NotifyPageDown() = 0; |
142 }; | 145 }; |
143 | 146 |
147 bool IsActiveForTesting(const std::string& input_method_id, | |
148 const InputMethodDescriptors* descriptors); | |
149 | |
144 } // namespace input_method | 150 } // namespace input_method |
145 } // namespace chromeos | 151 } // namespace chromeos |
146 | 152 |
147 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_IBUS_UI_CONTROLLER_H_ | 153 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_IBUS_UI_CONTROLLER_H_ |
OLD | NEW |