| 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_export.h" |
| 9 | 9 |
| 10 namespace ui { | 10 namespace ui { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 // This method is currently used only on Windows and only for testing. | 41 // This method is currently used only on Windows and only for testing. |
| 42 virtual void OnInputLocaleChanged() = 0; | 42 virtual void OnInputLocaleChanged() = 0; |
| 43 | 43 |
| 44 // Called when either: | 44 // Called when either: |
| 45 // - the TextInputClient is changed (e.g. by a change of focus) | 45 // - the TextInputClient is changed (e.g. by a change of focus) |
| 46 // - the TextInputType of the TextInputClient changes | 46 // - the TextInputType of the TextInputClient changes |
| 47 virtual void OnTextInputStateChanged(const TextInputClient* client) = 0; | 47 virtual void OnTextInputStateChanged(const TextInputClient* client) = 0; |
| 48 | 48 |
| 49 // Called when the observed InputMethod is being destroyed. | 49 // Called when the observed InputMethod is being destroyed. |
| 50 virtual void OnInputMethodDestroyed(const InputMethod* input_method) = 0; | 50 virtual void OnInputMethodDestroyed(const InputMethod* input_method) = 0; |
| 51 |
| 52 // Called when a user gesture should trigger showing the virtual keyboard. |
| 53 // Used in ChromeOS for the on screen keyboard. |
| 54 virtual void OnShowVirtualKeyboard() = 0; |
| 51 }; | 55 }; |
| 52 | 56 |
| 53 } // namespace ui | 57 } // namespace ui |
| 54 | 58 |
| 55 #endif // UI_BASE_IME_INPUT_METHOD_OBSERVER_H_ | 59 #endif // UI_BASE_IME_INPUT_METHOD_OBSERVER_H_ |
| OLD | NEW |