OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 COMPONENTS_ARC_IME_ARC_IME_SERVICE_H_ | 5 #ifndef COMPONENTS_ARC_IME_ARC_IME_SERVICE_H_ |
6 #define COMPONENTS_ARC_IME_ARC_IME_SERVICE_H_ | 6 #define COMPONENTS_ARC_IME_ARC_IME_SERVICE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 void OnKeyboardBoundsChanging(const gfx::Rect& rect) override; | 79 void OnKeyboardBoundsChanging(const gfx::Rect& rect) override; |
80 void OnKeyboardClosed() override; | 80 void OnKeyboardClosed() override; |
81 | 81 |
82 // Overridden from ui::TextInputClient: | 82 // Overridden from ui::TextInputClient: |
83 void SetCompositionText(const ui::CompositionText& composition) override; | 83 void SetCompositionText(const ui::CompositionText& composition) override; |
84 void ConfirmCompositionText() override; | 84 void ConfirmCompositionText() override; |
85 void ClearCompositionText() override; | 85 void ClearCompositionText() override; |
86 void InsertText(const base::string16& text) override; | 86 void InsertText(const base::string16& text) override; |
87 void InsertChar(const ui::KeyEvent& event) override; | 87 void InsertChar(const ui::KeyEvent& event) override; |
88 ui::TextInputType GetTextInputType() const override; | 88 ui::TextInputType GetTextInputType() const override; |
| 89 float GetScaleFactor() const override; |
89 gfx::Rect GetCaretBounds() const override; | 90 gfx::Rect GetCaretBounds() const override; |
90 | 91 |
91 // Overridden from ui::TextInputClient (with default implementation): | 92 // Overridden from ui::TextInputClient (with default implementation): |
92 // TODO(kinaba): Support each of these methods to the extent possible in | 93 // TODO(kinaba): Support each of these methods to the extent possible in |
93 // Android input method API. | 94 // Android input method API. |
94 ui::TextInputMode GetTextInputMode() const override; | 95 ui::TextInputMode GetTextInputMode() const override; |
95 base::i18n::TextDirection GetTextDirection() const override; | 96 base::i18n::TextDirection GetTextDirection() const override; |
96 int GetTextInputFlags() const override; | 97 int GetTextInputFlags() const override; |
97 bool CanComposeInline() const override; | 98 bool CanComposeInline() const override; |
98 bool GetCompositionCharacterBounds(uint32_t index, | 99 bool GetCompositionCharacterBounds(uint32_t index, |
(...skipping 30 matching lines...) Expand all Loading... |
129 | 130 |
130 ui::InputMethod* test_input_method_; | 131 ui::InputMethod* test_input_method_; |
131 bool is_focus_observer_installed_; | 132 bool is_focus_observer_installed_; |
132 | 133 |
133 DISALLOW_COPY_AND_ASSIGN(ArcImeService); | 134 DISALLOW_COPY_AND_ASSIGN(ArcImeService); |
134 }; | 135 }; |
135 | 136 |
136 } // namespace arc | 137 } // namespace arc |
137 | 138 |
138 #endif // COMPONENTS_ARC_IME_ARC_IME_SERVICE_H_ | 139 #endif // COMPONENTS_ARC_IME_ARC_IME_SERVICE_H_ |
OLD | NEW |