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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 bool GetSelectionRange(gfx::Range* range) const override; | 87 bool GetSelectionRange(gfx::Range* range) const override; |
88 bool SetSelectionRange(const gfx::Range& range) override; | 88 bool SetSelectionRange(const gfx::Range& range) override; |
89 bool DeleteRange(const gfx::Range& range) override; | 89 bool DeleteRange(const gfx::Range& range) override; |
90 bool GetTextFromRange(const gfx::Range& range, | 90 bool GetTextFromRange(const gfx::Range& range, |
91 base::string16* text) const override; | 91 base::string16* text) const override; |
92 void OnInputMethodChanged() override {} | 92 void OnInputMethodChanged() override {} |
93 bool ChangeTextDirectionAndLayoutAlignment( | 93 bool ChangeTextDirectionAndLayoutAlignment( |
94 base::i18n::TextDirection direction) override; | 94 base::i18n::TextDirection direction) override; |
95 void ExtendSelectionAndDelete(size_t before, size_t after) override {} | 95 void ExtendSelectionAndDelete(size_t before, size_t after) override {} |
96 void EnsureCaretInRect(const gfx::Rect& rect) override {} | 96 void EnsureCaretInRect(const gfx::Rect& rect) override {} |
97 bool IsEditCommandEnabled(int command_id) override; | 97 bool IsEditCommandEnabled(ui::TextEditCommand command) const override; |
98 void SetEditCommandForNextKeyEvent(int command_id) override {} | 98 void SetEditCommandForNextKeyEvent(ui::TextEditCommand command) override {} |
99 | 99 |
100 private: | 100 private: |
101 ui::InputMethod* GetInputMethod(); | 101 ui::InputMethod* GetInputMethod(); |
102 | 102 |
103 std::unique_ptr<ArcImeBridge> ime_bridge_; | 103 std::unique_ptr<ArcImeBridge> ime_bridge_; |
104 ui::TextInputType ime_type_; | 104 ui::TextInputType ime_type_; |
105 gfx::Rect cursor_rect_; | 105 gfx::Rect cursor_rect_; |
106 bool has_composition_text_; | 106 bool has_composition_text_; |
107 | 107 |
108 aura::WindowTracker observing_root_windows_; | 108 aura::WindowTracker observing_root_windows_; |
109 aura::WindowTracker arc_windows_; | 109 aura::WindowTracker arc_windows_; |
110 aura::WindowTracker focused_arc_window_; | 110 aura::WindowTracker focused_arc_window_; |
111 | 111 |
112 ui::InputMethod* test_input_method_; | 112 ui::InputMethod* test_input_method_; |
113 | 113 |
114 DISALLOW_COPY_AND_ASSIGN(ArcImeService); | 114 DISALLOW_COPY_AND_ASSIGN(ArcImeService); |
115 }; | 115 }; |
116 | 116 |
117 } // namespace arc | 117 } // namespace arc |
118 | 118 |
119 #endif // COMPONENTS_ARC_IME_ARC_IME_SERVICE_H_ | 119 #endif // COMPONENTS_ARC_IME_ARC_IME_SERVICE_H_ |
OLD | NEW |