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

Side by Side Diff: content/browser/renderer_host/input/touch_selection_controller.h

Issue 467303002: [Android] Perform haptic feedback after long press when appropriate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Hard event reset and refactor Created 6 years, 4 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_SELECTION_CONTROLLER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_SELECTION_CONTROLLER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_SELECTION_CONTROLLER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_SELECTION_CONTROLLER_H_
7 7
8 #include "content/browser/renderer_host/input/selection_event_type.h" 8 #include "content/browser/renderer_host/input/selection_event_type.h"
9 #include "content/browser/renderer_host/input/touch_handle.h" 9 #include "content/browser/renderer_host/input/touch_handle.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 gfx::PointF GetStartPosition() const; 110 gfx::PointF GetStartPosition() const;
111 gfx::PointF GetEndPosition() const; 111 gfx::PointF GetEndPosition() const;
112 float GetStartLineHeight() const; 112 float GetStartLineHeight() const;
113 float GetEndLineHeight() const; 113 float GetEndLineHeight() const;
114 bool GetStartVisible() const; 114 bool GetStartVisible() const;
115 bool GetEndVisible() const; 115 bool GetEndVisible() const;
116 TouchHandle::AnimationStyle GetAnimationStyle(bool was_active) const; 116 TouchHandle::AnimationStyle GetAnimationStyle(bool was_active) const;
117 117
118 TouchSelectionControllerClient* const client_; 118 TouchSelectionControllerClient* const client_;
119 119
120 InputEventType last_input_event_type_; 120 InputEventType response_pending_input_event_;
121 121
122 gfx::RectF start_rect_; 122 gfx::RectF start_rect_;
123 TouchHandleOrientation start_orientation_; 123 TouchHandleOrientation start_orientation_;
124 bool start_visible_; 124 bool start_visible_;
125 gfx::RectF end_rect_; 125 gfx::RectF end_rect_;
126 TouchHandleOrientation end_orientation_; 126 TouchHandleOrientation end_orientation_;
127 bool end_visible_; 127 bool end_visible_;
128 128
129 scoped_ptr<TouchHandle> insertion_handle_; 129 scoped_ptr<TouchHandle> insertion_handle_;
130 bool is_insertion_active_; 130 bool is_insertion_active_;
131 bool activate_insertion_automatically_; 131 bool activate_insertion_automatically_;
132 132
133 scoped_ptr<TouchHandle> start_selection_handle_; 133 scoped_ptr<TouchHandle> start_selection_handle_;
134 scoped_ptr<TouchHandle> end_selection_handle_; 134 scoped_ptr<TouchHandle> end_selection_handle_;
135 gfx::PointF fixed_handle_position_; 135 gfx::PointF fixed_handle_position_;
136 bool is_selection_active_; 136 bool is_selection_active_;
137 bool activate_selection_automatically_; 137 bool activate_selection_automatically_;
138 138
139 bool selection_empty_; 139 bool selection_empty_;
140 bool selection_editable_; 140 bool selection_editable_;
141 141
142 bool temporarily_hidden_; 142 bool temporarily_hidden_;
143 143
144 DISALLOW_COPY_AND_ASSIGN(TouchSelectionController); 144 DISALLOW_COPY_AND_ASSIGN(TouchSelectionController);
145 }; 145 };
146 146
147 } // namespace content 147 } // namespace content
148 148
149 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_SELECTION_CONTROLLER_H_ 149 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_SELECTION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « content/browser/android/content_view_core_impl.cc ('k') | content/browser/renderer_host/input/touch_selection_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698