| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_OBSERVER_H_ | 5 #ifndef UI_BASE_IME_INPUT_METHOD_OBSERVER_H_ |
| 6 #define UI_BASE_IME_INPUT_METHOD_OBSERVER_H_ | 6 #define UI_BASE_IME_INPUT_METHOD_OBSERVER_H_ |
| 7 | 7 |
| 8 #include "ui/base/ui_export.h" | 8 #include "ui/base/ui_base_export.h" |
| 9 | 9 |
| 10 namespace ui { | 10 namespace ui { |
| 11 | 11 |
| 12 class InputMethod; | 12 class InputMethod; |
| 13 class TextInputClient; | 13 class TextInputClient; |
| 14 | 14 |
| 15 class UI_EXPORT InputMethodObserver { | 15 class UI_BASE_EXPORT InputMethodObserver { |
| 16 public: | 16 public: |
| 17 virtual ~InputMethodObserver() {} | 17 virtual ~InputMethodObserver() {} |
| 18 | 18 |
| 19 // Called whenever the text input type is changed for the focused client. | 19 // Called whenever the text input type is changed for the focused client. |
| 20 // Currently only used by the mock input method for testing. | 20 // Currently only used by the mock input method for testing. |
| 21 virtual void OnTextInputTypeChanged(const TextInputClient* client) = 0; | 21 virtual void OnTextInputTypeChanged(const TextInputClient* client) = 0; |
| 22 | 22 |
| 23 // Called when the top-level system window gets keyboard focus. Currently | 23 // Called when the top-level system window gets keyboard focus. Currently |
| 24 // only used by the mock input method for testing. | 24 // only used by the mock input method for testing. |
| 25 virtual void OnFocus() = 0; | 25 virtual void OnFocus() = 0; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 37 // - the TextInputType of the TextInputClient changes | 37 // - the TextInputType of the TextInputClient changes |
| 38 virtual void OnTextInputStateChanged(const TextInputClient* client) = 0; | 38 virtual void OnTextInputStateChanged(const TextInputClient* client) = 0; |
| 39 | 39 |
| 40 // Called when the observed InputMethod is being destroyed. | 40 // Called when the observed InputMethod is being destroyed. |
| 41 virtual void OnInputMethodDestroyed(const InputMethod* input_method) = 0; | 41 virtual void OnInputMethodDestroyed(const InputMethod* input_method) = 0; |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 } // namespace ui | 44 } // namespace ui |
| 45 | 45 |
| 46 #endif // UI_BASE_IME_INPUT_METHOD_OBSERVER_H_ | 46 #endif // UI_BASE_IME_INPUT_METHOD_OBSERVER_H_ |
| OLD | NEW |