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

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

Issue 2029733003: Views: Replace resource ids with ui::TextEditCommand enum for text editing commands in Textfield. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: === Created 4 years, 6 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
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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 bool GetSelectionRange(gfx::Range* range) const override; 89 bool GetSelectionRange(gfx::Range* range) const override;
90 bool SetSelectionRange(const gfx::Range& range) override; 90 bool SetSelectionRange(const gfx::Range& range) override;
91 bool DeleteRange(const gfx::Range& range) override; 91 bool DeleteRange(const gfx::Range& range) override;
92 bool GetTextFromRange(const gfx::Range& range, 92 bool GetTextFromRange(const gfx::Range& range,
93 base::string16* text) const override; 93 base::string16* text) const override;
94 void OnInputMethodChanged() override {} 94 void OnInputMethodChanged() override {}
95 bool ChangeTextDirectionAndLayoutAlignment( 95 bool ChangeTextDirectionAndLayoutAlignment(
96 base::i18n::TextDirection direction) override; 96 base::i18n::TextDirection direction) override;
97 void ExtendSelectionAndDelete(size_t before, size_t after) override {} 97 void ExtendSelectionAndDelete(size_t before, size_t after) override {}
98 void EnsureCaretInRect(const gfx::Rect& rect) override {} 98 void EnsureCaretInRect(const gfx::Rect& rect) override {}
99 bool IsEditCommandEnabled(int command_id) const override; 99 bool IsTextEditCommandEnabled(ui::TextEditCommand command) const override;
100 void SetEditCommandForNextKeyEvent(int command_id) override {} 100 void SetTextEditCommandForNextKeyEvent(ui::TextEditCommand command) override {
101 }
101 102
102 private: 103 private:
103 ui::InputMethod* GetInputMethod(); 104 ui::InputMethod* GetInputMethod();
104 105
105 std::unique_ptr<ArcImeBridge> ime_bridge_; 106 std::unique_ptr<ArcImeBridge> ime_bridge_;
106 ui::TextInputType ime_type_; 107 ui::TextInputType ime_type_;
107 gfx::Rect cursor_rect_; 108 gfx::Rect cursor_rect_;
108 bool has_composition_text_; 109 bool has_composition_text_;
109 110
110 aura::WindowTracker observing_root_windows_; 111 aura::WindowTracker observing_root_windows_;
111 aura::WindowTracker arc_windows_; 112 aura::WindowTracker arc_windows_;
112 aura::WindowTracker focused_arc_window_; 113 aura::WindowTracker focused_arc_window_;
113 114
114 ui::InputMethod* test_input_method_; 115 ui::InputMethod* test_input_method_;
115 116
116 DISALLOW_COPY_AND_ASSIGN(ArcImeService); 117 DISALLOW_COPY_AND_ASSIGN(ArcImeService);
117 }; 118 };
118 119
119 } // namespace arc 120 } // namespace arc
120 121
121 #endif // COMPONENTS_ARC_IME_ARC_IME_SERVICE_H_ 122 #endif // COMPONENTS_ARC_IME_ARC_IME_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_view_views.cc ('k') | components/arc/ime/arc_ime_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698