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