Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(276)

Side by Side Diff: components/arc/ime/arc_ime_service.h

Issue 2136933002: Add ime.ExtendSelectionAndDelete Mojo RPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add ime.ExtendSelectionAndDelete Mojo RPC Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/arc/ime/arc_ime_bridge_impl.cc ('k') | components/arc/ime/arc_ime_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 bool GetTextRange(gfx::Range* range) const override; 93 bool GetTextRange(gfx::Range* range) const override;
94 bool GetCompositionTextRange(gfx::Range* range) const override; 94 bool GetCompositionTextRange(gfx::Range* range) const override;
95 bool GetSelectionRange(gfx::Range* range) const override; 95 bool GetSelectionRange(gfx::Range* range) const override;
96 bool SetSelectionRange(const gfx::Range& range) override; 96 bool SetSelectionRange(const gfx::Range& range) override;
97 bool DeleteRange(const gfx::Range& range) override; 97 bool DeleteRange(const gfx::Range& range) override;
98 bool GetTextFromRange(const gfx::Range& range, 98 bool GetTextFromRange(const gfx::Range& range,
99 base::string16* text) const override; 99 base::string16* text) const override;
100 void OnInputMethodChanged() override {} 100 void OnInputMethodChanged() override {}
101 bool ChangeTextDirectionAndLayoutAlignment( 101 bool ChangeTextDirectionAndLayoutAlignment(
102 base::i18n::TextDirection direction) override; 102 base::i18n::TextDirection direction) override;
103 void ExtendSelectionAndDelete(size_t before, size_t after) override {} 103 void ExtendSelectionAndDelete(size_t before, size_t after) override;
104 void EnsureCaretInRect(const gfx::Rect& rect) override {} 104 void EnsureCaretInRect(const gfx::Rect& rect) override {}
105 bool IsTextEditCommandEnabled(ui::TextEditCommand command) const override; 105 bool IsTextEditCommandEnabled(ui::TextEditCommand command) const override;
106 void SetTextEditCommandForNextKeyEvent(ui::TextEditCommand command) override { 106 void SetTextEditCommandForNextKeyEvent(ui::TextEditCommand command) override {
107 } 107 }
108 108
109 private: 109 private:
110 ui::InputMethod* GetInputMethod(); 110 ui::InputMethod* GetInputMethod();
111 111
112 std::unique_ptr<ArcImeBridge> ime_bridge_; 112 std::unique_ptr<ArcImeBridge> ime_bridge_;
113 ui::TextInputType ime_type_; 113 ui::TextInputType ime_type_;
114 gfx::Rect cursor_rect_; 114 gfx::Rect cursor_rect_;
115 bool has_composition_text_; 115 bool has_composition_text_;
116 116
117 aura::WindowTracker observing_root_windows_; 117 aura::WindowTracker observing_root_windows_;
118 aura::WindowTracker arc_windows_; 118 aura::WindowTracker arc_windows_;
119 aura::WindowTracker focused_arc_window_; 119 aura::WindowTracker focused_arc_window_;
120 120
121 keyboard::KeyboardController* keyboard_controller_; 121 keyboard::KeyboardController* keyboard_controller_;
122 122
123 ui::InputMethod* test_input_method_; 123 ui::InputMethod* test_input_method_;
124 124
125 DISALLOW_COPY_AND_ASSIGN(ArcImeService); 125 DISALLOW_COPY_AND_ASSIGN(ArcImeService);
126 }; 126 };
127 127
128 } // namespace arc 128 } // namespace arc
129 129
130 #endif // COMPONENTS_ARC_IME_ARC_IME_SERVICE_H_ 130 #endif // COMPONENTS_ARC_IME_ARC_IME_SERVICE_H_
OLDNEW
« no previous file with comments | « components/arc/ime/arc_ime_bridge_impl.cc ('k') | components/arc/ime/arc_ime_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698