| 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_BASE_H_ | 5 #ifndef UI_BASE_IME_INPUT_METHOD_BASE_H_ |
| 6 #define UI_BASE_IME_INPUT_METHOD_BASE_H_ | 6 #define UI_BASE_IME_INPUT_METHOD_BASE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 InputMethodBase(); | 36 InputMethodBase(); |
| 37 ~InputMethodBase() override; | 37 ~InputMethodBase() override; |
| 38 | 38 |
| 39 // Overriden from InputMethod. | 39 // Overriden from InputMethod. |
| 40 void SetDelegate(internal::InputMethodDelegate* delegate) override; | 40 void SetDelegate(internal::InputMethodDelegate* delegate) override; |
| 41 void OnFocus() override; | 41 void OnFocus() override; |
| 42 void OnBlur() override; | 42 void OnBlur() override; |
| 43 void SetFocusedTextInputClient(TextInputClient* client) override; | 43 void SetFocusedTextInputClient(TextInputClient* client) override; |
| 44 void DetachTextInputClient(TextInputClient* client) override; | 44 void DetachTextInputClient(TextInputClient* client) override; |
| 45 TextInputClient* GetTextInputClient() const override; | 45 TextInputClient* GetTextInputClient() const override; |
| 46 void SetOnScreenKeyboardBounds(const gfx::Rect& new_bounds) override; |
| 46 | 47 |
| 47 // If a derived class overrides this method, it should call parent's | 48 // If a derived class overrides this method, it should call parent's |
| 48 // implementation. | 49 // implementation. |
| 49 void OnTextInputTypeChanged(const TextInputClient* client) override; | 50 void OnTextInputTypeChanged(const TextInputClient* client) override; |
| 50 void OnInputLocaleChanged() override; | 51 void OnInputLocaleChanged() override; |
| 51 bool IsInputLocaleCJK() const override; | 52 bool IsInputLocaleCJK() const override; |
| 52 | 53 |
| 53 TextInputType GetTextInputType() const override; | 54 TextInputType GetTextInputType() const override; |
| 54 TextInputMode GetTextInputMode() const override; | 55 TextInputMode GetTextInputMode() const override; |
| 55 int GetTextInputFlags() const override; | 56 int GetTextInputFlags() const override; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 | 118 |
| 118 void SetFocusedTextInputClientInternal(TextInputClient* client); | 119 void SetFocusedTextInputClientInternal(TextInputClient* client); |
| 119 | 120 |
| 120 internal::InputMethodDelegate* delegate_; | 121 internal::InputMethodDelegate* delegate_; |
| 121 TextInputClient* text_input_client_; | 122 TextInputClient* text_input_client_; |
| 122 | 123 |
| 123 base::ObserverList<InputMethodObserver> observer_list_; | 124 base::ObserverList<InputMethodObserver> observer_list_; |
| 124 | 125 |
| 125 std::vector<std::unique_ptr<ui::KeyEvent>> key_events_for_testing_; | 126 std::vector<std::unique_ptr<ui::KeyEvent>> key_events_for_testing_; |
| 126 | 127 |
| 128 // Screen bounds of a on-screen keyboard. |
| 129 gfx::Rect keyboard_bounds_; |
| 130 |
| 127 DISALLOW_COPY_AND_ASSIGN(InputMethodBase); | 131 DISALLOW_COPY_AND_ASSIGN(InputMethodBase); |
| 128 }; | 132 }; |
| 129 | 133 |
| 130 } // namespace ui | 134 } // namespace ui |
| 131 | 135 |
| 132 #endif // UI_BASE_IME_INPUT_METHOD_BASE_H_ | 136 #endif // UI_BASE_IME_INPUT_METHOD_BASE_H_ |
| OLD | NEW |