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

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

Issue 434583002: Prevent repeated taps from resetting insertion handle position (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased the patch 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
« no previous file with comments | « no previous file | content/browser/renderer_host/input/touch_selection_controller.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 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 void ShowInsertionHandleAutomatically(); 98 void ShowInsertionHandleAutomatically();
99 void ShowSelectionHandlesAutomatically(); 99 void ShowSelectionHandlesAutomatically();
100 100
101 void OnInsertionChanged(); 101 void OnInsertionChanged();
102 void OnSelectionChanged(); 102 void OnSelectionChanged();
103 103
104 void ActivateInsertion(); 104 void ActivateInsertion();
105 void DeactivateInsertion(); 105 void DeactivateInsertion();
106 void ActivateSelection(); 106 void ActivateSelection();
107 void DeactivateSelection(); 107 void DeactivateSelection();
108 void ResetCachedValues(); 108 void ResetCachedValuesIfInactive();
109 109
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_;
(...skipping 21 matching lines...) Expand all
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 | « no previous file | content/browser/renderer_host/input/touch_selection_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698