OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |