| 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 SetAvailableBounds(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 | 51 |
| 51 TextInputType GetTextInputType() const override; | 52 TextInputType GetTextInputType() const override; |
| 52 TextInputMode GetTextInputMode() const override; | 53 TextInputMode GetTextInputMode() const override; |
| 53 int GetTextInputFlags() const override; | 54 int GetTextInputFlags() const override; |
| 54 bool CanComposeInline() const override; | 55 bool CanComposeInline() const override; |
| 55 void ShowImeIfNeeded() override; | 56 void ShowImeIfNeeded() override; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 | 116 |
| 116 void SetFocusedTextInputClientInternal(TextInputClient* client); | 117 void SetFocusedTextInputClientInternal(TextInputClient* client); |
| 117 | 118 |
| 118 internal::InputMethodDelegate* delegate_; | 119 internal::InputMethodDelegate* delegate_; |
| 119 TextInputClient* text_input_client_; | 120 TextInputClient* text_input_client_; |
| 120 | 121 |
| 121 base::ObserverList<InputMethodObserver> observer_list_; | 122 base::ObserverList<InputMethodObserver> observer_list_; |
| 122 | 123 |
| 123 std::vector<std::unique_ptr<ui::KeyEvent>> key_events_for_testing_; | 124 std::vector<std::unique_ptr<ui::KeyEvent>> key_events_for_testing_; |
| 124 | 125 |
| 126 // Screen bounds of root window not covered by virtual keyboard if it is |
| 127 // active. |
| 128 gfx::Rect available_bounds_; |
| 129 |
| 125 DISALLOW_COPY_AND_ASSIGN(InputMethodBase); | 130 DISALLOW_COPY_AND_ASSIGN(InputMethodBase); |
| 126 }; | 131 }; |
| 127 | 132 |
| 128 } // namespace ui | 133 } // namespace ui |
| 129 | 134 |
| 130 #endif // UI_BASE_IME_INPUT_METHOD_BASE_H_ | 135 #endif // UI_BASE_IME_INPUT_METHOD_BASE_H_ |
| OLD | NEW |