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 #ifndef UI_BASE_IME_INPUT_METHOD_H_ | 5 #ifndef UI_BASE_IME_INPUT_METHOD_H_ |
6 #define UI_BASE_IME_INPUT_METHOD_H_ | 6 #define UI_BASE_IME_INPUT_METHOD_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/event_types.h" | 12 #include "base/event_types.h" |
13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
| 14 #include "ui/base/ime/input_method_log_collector.h" |
14 #include "ui/base/ime/text_input_mode.h" | 15 #include "ui/base/ime/text_input_mode.h" |
15 #include "ui/base/ime/text_input_type.h" | 16 #include "ui/base/ime/text_input_type.h" |
16 | 17 |
17 namespace ui { | 18 namespace ui { |
18 | 19 |
19 namespace internal { | 20 namespace internal { |
20 class InputMethodDelegate; | 21 class InputMethodDelegate; |
21 } // namespace internal | 22 } // namespace internal |
22 | 23 |
23 class InputMethodObserver; | 24 class InputMethodObserver; |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 // etc.) is open. Returns false if no popup window is open or the detection | 146 // etc.) is open. Returns false if no popup window is open or the detection |
146 // of IME popups is not supported. | 147 // of IME popups is not supported. |
147 virtual bool IsCandidatePopupOpen() const = 0; | 148 virtual bool IsCandidatePopupOpen() const = 0; |
148 | 149 |
149 // Displays an on screen keyboard if enabled. | 150 // Displays an on screen keyboard if enabled. |
150 virtual void ShowImeIfNeeded() = 0; | 151 virtual void ShowImeIfNeeded() = 0; |
151 | 152 |
152 // Management of the observer list. | 153 // Management of the observer list. |
153 virtual void AddObserver(InputMethodObserver* observer) = 0; | 154 virtual void AddObserver(InputMethodObserver* observer) = 0; |
154 virtual void RemoveObserver(InputMethodObserver* observer) = 0; | 155 virtual void RemoveObserver(InputMethodObserver* observer) = 0; |
| 156 |
| 157 virtual InputMethodLogCollector* GetLogCollector() = 0; |
155 }; | 158 }; |
156 | 159 |
157 } // namespace ui | 160 } // namespace ui |
158 | 161 |
159 #endif // UI_BASE_IME_INPUT_METHOD_H_ | 162 #endif // UI_BASE_IME_INPUT_METHOD_H_ |
OLD | NEW |