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

Side by Side Diff: third_party/WebKit/public/platform/WebGestureEvent.h

Issue 2486673008: Touchpad scroll latching enabled for Mac behind flag. (Closed)
Patch Set: nit fixed Created 4 years 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 WebGestureEvent_h 5 #ifndef WebGestureEvent_h
6 #define WebGestureEvent_h 6 #define WebGestureEvent_h
7 7
8 #include "WebGestureDevice.h" 8 #include "WebGestureDevice.h"
9 #include "WebInputEvent.h" 9 #include "WebInputEvent.h"
10 10
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 ScrollUnits deltaUnits; 125 ScrollUnits deltaUnits;
126 // The state of inertial phase scrolling. OSX has unique phases for normal 126 // The state of inertial phase scrolling. OSX has unique phases for normal
127 // and momentum scroll events. Should always be UnknownMomentumPhase for 127 // and momentum scroll events. Should always be UnknownMomentumPhase for
128 // touch based input as it generates GestureFlingStart instead. 128 // touch based input as it generates GestureFlingStart instead.
129 InertialPhaseState inertialPhase; 129 InertialPhaseState inertialPhase;
130 // True if this event was synthesized in order to generate the proper 130 // True if this event was synthesized in order to generate the proper
131 // GSB/GSU/GSE matching sequences. This is a temporary so that a future 131 // GSB/GSU/GSE matching sequences. This is a temporary so that a future
132 // GSB will generate a hit test so latching behavior is avoided 132 // GSB will generate a hit test so latching behavior is avoided
133 // until crbug.com/526463 is fully implemented. 133 // until crbug.com/526463 is fully implemented.
134 bool synthetic; 134 bool synthetic;
135 // True if this event will be followed by a fling.
136 bool precedesFling;
135 } scrollEnd; 137 } scrollEnd;
136 138
137 struct { 139 struct {
138 float velocityX; 140 float velocityX;
139 float velocityY; 141 float velocityY;
140 // If true, this event will skip hit testing to find a scroll 142 // If true, this event will skip hit testing to find a scroll
141 // target and instead just scroll the viewport. 143 // target and instead just scroll the viewport.
142 bool targetViewport; 144 bool targetViewport;
143 } flingStart; 145 } flingStart;
144 146
(...skipping 17 matching lines...) Expand all
162 globalY(0), 164 globalY(0),
163 sourceDevice(WebGestureDeviceUninitialized), 165 sourceDevice(WebGestureDeviceUninitialized),
164 resendingPluginId(-1) {} 166 resendingPluginId(-1) {}
165 }; 167 };
166 168
167 #pragma pack(pop) 169 #pragma pack(pop)
168 170
169 } // namespace blink 171 } // namespace blink
170 172
171 #endif // WebGestureEvent_h 173 #endif // WebGestureEvent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698