Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 // 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 #include "ui/gfx/rect.h" | |
|
Yusuke Sato
2012/06/13 14:31:26
replace it with a forward decl.
Seigo Nonaka
2012/06/13 15:07:18
Done.
| |
| 19 | 20 |
| 20 namespace chromeos { | 21 namespace chromeos { |
| 21 namespace input_method { | 22 namespace input_method { |
| 22 | 23 |
| 23 // A key for attaching the |ibus_service_panel_| object to |ibus_|. | 24 // A key for attaching the |ibus_service_panel_| object to |ibus_|. |
| 24 const char kPanelObjectKey[] = "panel-object"; | 25 const char kPanelObjectKey[] = "panel-object"; |
| 25 | 26 |
| 26 class InputMethodDescriptor; | 27 class InputMethodDescriptor; |
| 27 typedef std::vector<InputMethodDescriptor> InputMethodDescriptors; | 28 typedef std::vector<InputMethodDescriptor> InputMethodDescriptors; |
| 28 | 29 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 78 // Called when the auxiliary text becomes hidden. | 79 // Called when the auxiliary text becomes hidden. |
| 79 virtual void OnHideAuxiliaryText() = 0; | 80 virtual void OnHideAuxiliaryText() = 0; |
| 80 | 81 |
| 81 // Called when the lookup table becomes hidden. | 82 // Called when the lookup table becomes hidden. |
| 82 virtual void OnHideLookupTable() = 0; | 83 virtual void OnHideLookupTable() = 0; |
| 83 | 84 |
| 84 // Called when the preedit text becomes hidden. | 85 // Called when the preedit text becomes hidden. |
| 85 virtual void OnHidePreeditText() = 0; | 86 virtual void OnHidePreeditText() = 0; |
| 86 | 87 |
| 87 // Called when the cursor location is set. | 88 // Called when the cursor location is set. |
| 88 virtual void OnSetCursorLocation(int x, int y, int width, int height) = 0; | 89 virtual void OnSetCursorLocation(int x, int y, int width, int height, |
| 90 const gfx::Rect& composition_head) = 0; | |
| 89 | 91 |
| 90 // Called when the auxiliary text is updated. | 92 // Called when the auxiliary text is updated. |
| 91 virtual void OnUpdateAuxiliaryText(const std::string& text, | 93 virtual void OnUpdateAuxiliaryText(const std::string& text, |
| 92 bool visible) = 0; | 94 bool visible) = 0; |
| 93 | 95 |
| 94 // Called when the lookup table is updated. | 96 // Called when the lookup table is updated. |
| 95 virtual void OnUpdateLookupTable(const InputMethodLookupTable& table) = 0; | 97 virtual void OnUpdateLookupTable(const InputMethodLookupTable& table) = 0; |
| 96 | 98 |
| 97 // Called when the preedit text is updated. | 99 // Called when the preedit text is updated. |
| 98 virtual void OnUpdatePreeditText(const std::string& utf8_text, | 100 virtual void OnUpdatePreeditText(const std::string& utf8_text, |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 144 virtual void NotifyPageDown() = 0; | 146 virtual void NotifyPageDown() = 0; |
| 145 }; | 147 }; |
| 146 | 148 |
| 147 bool IsActiveForTesting(const std::string& input_method_id, | 149 bool IsActiveForTesting(const std::string& input_method_id, |
| 148 const InputMethodDescriptors* descriptors); | 150 const InputMethodDescriptors* descriptors); |
| 149 | 151 |
| 150 } // namespace input_method | 152 } // namespace input_method |
| 151 } // namespace chromeos | 153 } // namespace chromeos |
| 152 | 154 |
| 153 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_IBUS_UI_CONTROLLER_H_ | 155 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_IBUS_UI_CONTROLLER_H_ |
| OLD | NEW |