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

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

Issue 1893523002: MacViews: Allow force touch in views::Textfield Base URL: https://chromium.googlesource.com/chromium/src.git@20160415-Mac-ForceTouch
Patch Set: Created 4 years, 8 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 "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "components/arc/arc_service.h" 10 #include "components/arc/arc_service.h"
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 bool DeleteRange(const gfx::Range& range) override; 88 bool DeleteRange(const gfx::Range& range) override;
89 bool GetTextFromRange(const gfx::Range& range, 89 bool GetTextFromRange(const gfx::Range& range,
90 base::string16* text) const override; 90 base::string16* text) const override;
91 void OnInputMethodChanged() override {} 91 void OnInputMethodChanged() override {}
92 bool ChangeTextDirectionAndLayoutAlignment( 92 bool ChangeTextDirectionAndLayoutAlignment(
93 base::i18n::TextDirection direction) override; 93 base::i18n::TextDirection direction) override;
94 void ExtendSelectionAndDelete(size_t before, size_t after) override {} 94 void ExtendSelectionAndDelete(size_t before, size_t after) override {}
95 void EnsureCaretInRect(const gfx::Rect& rect) override {} 95 void EnsureCaretInRect(const gfx::Rect& rect) override {}
96 bool IsEditCommandEnabled(int command_id) override; 96 bool IsEditCommandEnabled(int command_id) override;
97 void SetEditCommandForNextKeyEvent(int command_id) override {} 97 void SetEditCommandForNextKeyEvent(int command_id) override {}
98 const gfx::RenderText* GetTextAtPointInWindow(
99 const gfx::Point& point,
100 gfx::Range* range,
101 gfx::Point* baseline_point) override;
98 102
99 private: 103 private:
100 ui::InputMethod* GetInputMethod(); 104 ui::InputMethod* GetInputMethod();
101 105
102 scoped_ptr<ArcImeBridge> ime_bridge_; 106 scoped_ptr<ArcImeBridge> ime_bridge_;
103 ui::TextInputType ime_type_; 107 ui::TextInputType ime_type_;
104 gfx::Rect cursor_rect_; 108 gfx::Rect cursor_rect_;
105 bool has_composition_text_; 109 bool has_composition_text_;
106 110
107 aura::WindowTracker observing_root_windows_; 111 aura::WindowTracker observing_root_windows_;
108 aura::WindowTracker arc_windows_; 112 aura::WindowTracker arc_windows_;
109 aura::WindowTracker focused_arc_window_; 113 aura::WindowTracker focused_arc_window_;
110 114
111 ui::InputMethod* test_input_method_; 115 ui::InputMethod* test_input_method_;
112 116
113 DISALLOW_COPY_AND_ASSIGN(ArcImeService); 117 DISALLOW_COPY_AND_ASSIGN(ArcImeService);
114 }; 118 };
115 119
116 } // namespace arc 120 } // namespace arc
117 121
118 #endif // COMPONENTS_ARC_IME_ARC_IME_SERVICE_H_ 122 #endif // COMPONENTS_ARC_IME_ARC_IME_SERVICE_H_
OLDNEW
« no previous file with comments | « blimp/engine/feature/engine_render_widget_feature_unittest.cc ('k') | components/arc/ime/arc_ime_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698