| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 void ClearCompositionText() override; | 70 void ClearCompositionText() override; |
| 71 void InsertText(const base::string16& text) override; | 71 void InsertText(const base::string16& text) override; |
| 72 void InsertChar(const ui::KeyEvent& event) override; | 72 void InsertChar(const ui::KeyEvent& event) override; |
| 73 ui::TextInputType GetTextInputType() const override; | 73 ui::TextInputType GetTextInputType() const override; |
| 74 gfx::Rect GetCaretBounds() const override; | 74 gfx::Rect GetCaretBounds() const override; |
| 75 | 75 |
| 76 // Overridden from ui::TextInputClient (with default implementation): | 76 // Overridden from ui::TextInputClient (with default implementation): |
| 77 // TODO(kinaba): Support each of these methods to the extent possible in | 77 // TODO(kinaba): Support each of these methods to the extent possible in |
| 78 // Android input method API. | 78 // Android input method API. |
| 79 ui::TextInputMode GetTextInputMode() const override; | 79 ui::TextInputMode GetTextInputMode() const override; |
| 80 base::i18n::TextDirection GetTextDirection() const override; |
| 80 int GetTextInputFlags() const override; | 81 int GetTextInputFlags() const override; |
| 81 bool CanComposeInline() const override; | 82 bool CanComposeInline() const override; |
| 82 bool GetCompositionCharacterBounds(uint32_t index, | 83 bool GetCompositionCharacterBounds(uint32_t index, |
| 83 gfx::Rect* rect) const override; | 84 gfx::Rect* rect) const override; |
| 84 bool HasCompositionText() const override; | 85 bool HasCompositionText() const override; |
| 85 bool GetTextRange(gfx::Range* range) const override; | 86 bool GetTextRange(gfx::Range* range) const override; |
| 86 bool GetCompositionTextRange(gfx::Range* range) const override; | 87 bool GetCompositionTextRange(gfx::Range* range) const override; |
| 87 bool GetSelectionRange(gfx::Range* range) const override; | 88 bool GetSelectionRange(gfx::Range* range) const override; |
| 88 bool SetSelectionRange(const gfx::Range& range) override; | 89 bool SetSelectionRange(const gfx::Range& range) override; |
| 89 bool DeleteRange(const gfx::Range& range) override; | 90 bool DeleteRange(const gfx::Range& range) override; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 110 aura::WindowTracker focused_arc_window_; | 111 aura::WindowTracker focused_arc_window_; |
| 111 | 112 |
| 112 ui::InputMethod* test_input_method_; | 113 ui::InputMethod* test_input_method_; |
| 113 | 114 |
| 114 DISALLOW_COPY_AND_ASSIGN(ArcImeService); | 115 DISALLOW_COPY_AND_ASSIGN(ArcImeService); |
| 115 }; | 116 }; |
| 116 | 117 |
| 117 } // namespace arc | 118 } // namespace arc |
| 118 | 119 |
| 119 #endif // COMPONENTS_ARC_IME_ARC_IME_SERVICE_H_ | 120 #endif // COMPONENTS_ARC_IME_ARC_IME_SERVICE_H_ |
| OLD | NEW |