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

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

Issue 2856153003: Pass TouchAction bits together with rect in SetTouchEventHandlerRegion (Closed)
Patch Set: rebase + comment Created 3 years, 7 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 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 20 matching lines...) Expand all
31 #include "WebBlendMode.h" 31 #include "WebBlendMode.h"
32 #include "WebColor.h" 32 #include "WebColor.h"
33 #include "WebCommon.h" 33 #include "WebCommon.h"
34 #include "WebFloatPoint.h" 34 #include "WebFloatPoint.h"
35 #include "WebFloatPoint3D.h" 35 #include "WebFloatPoint3D.h"
36 #include "WebFloatSize.h" 36 #include "WebFloatSize.h"
37 #include "WebPoint.h" 37 #include "WebPoint.h"
38 #include "WebRect.h" 38 #include "WebRect.h"
39 #include "WebSize.h" 39 #include "WebSize.h"
40 #include "WebString.h" 40 #include "WebString.h"
41 #include "WebTouchInfo.h"
41 #include "WebVector.h" 42 #include "WebVector.h"
42 43
43 class SkMatrix44; 44 class SkMatrix44;
44 45
45 namespace cc { 46 namespace cc {
46 class Layer; 47 class Layer;
47 class LayerClient; 48 class LayerClient;
48 class FilterOperations; 49 class FilterOperations;
49 struct ElementId; 50 struct ElementId;
50 } 51 }
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 // provided reason. 178 // provided reason.
178 virtual void AddMainThreadScrollingReasons(uint32_t) = 0; 179 virtual void AddMainThreadScrollingReasons(uint32_t) = 0;
179 virtual void ClearMainThreadScrollingReasons( 180 virtual void ClearMainThreadScrollingReasons(
180 uint32_t main_thread_scrolling_reasons_to_clear) = 0; 181 uint32_t main_thread_scrolling_reasons_to_clear) = 0;
181 virtual uint32_t MainThreadScrollingReasons() = 0; 182 virtual uint32_t MainThreadScrollingReasons() = 0;
182 virtual bool ShouldScrollOnMainThread() const = 0; 183 virtual bool ShouldScrollOnMainThread() const = 0;
183 184
184 virtual void SetNonFastScrollableRegion(const WebVector<WebRect>&) = 0; 185 virtual void SetNonFastScrollableRegion(const WebVector<WebRect>&) = 0;
185 virtual WebVector<WebRect> NonFastScrollableRegion() const = 0; 186 virtual WebVector<WebRect> NonFastScrollableRegion() const = 0;
186 187
187 virtual void SetTouchEventHandlerRegion(const WebVector<WebRect>&) = 0; 188 virtual void SetTouchEventHandlerRegion(const WebVector<WebTouchInfo>&) = 0;
188 virtual WebVector<WebRect> TouchEventHandlerRegion() const = 0; 189 virtual WebVector<WebRect> TouchEventHandlerRegion() const = 0;
189 190
190 virtual void SetIsContainerForFixedPositionLayers(bool) = 0; 191 virtual void SetIsContainerForFixedPositionLayers(bool) = 0;
191 virtual bool IsContainerForFixedPositionLayers() const = 0; 192 virtual bool IsContainerForFixedPositionLayers() const = 0;
192 193
193 // This function sets layer position constraint. The constraint will be used 194 // This function sets layer position constraint. The constraint will be used
194 // to adjust layer position during threaded scrolling. 195 // to adjust layer position during threaded scrolling.
195 virtual void SetPositionConstraint(const WebLayerPositionConstraint&) = 0; 196 virtual void SetPositionConstraint(const WebLayerPositionConstraint&) = 0;
196 virtual WebLayerPositionConstraint PositionConstraint() const = 0; 197 virtual WebLayerPositionConstraint PositionConstraint() const = 0;
197 198
(...skipping 25 matching lines...) Expand all
223 224
224 virtual void SetHasWillChangeTransformHint(bool) = 0; 225 virtual void SetHasWillChangeTransformHint(bool) = 0;
225 226
226 // Called on the scroll layer to trigger showing the overlay scrollbars. 227 // Called on the scroll layer to trigger showing the overlay scrollbars.
227 virtual void ShowScrollbars() = 0; 228 virtual void ShowScrollbars() = 0;
228 }; 229 };
229 230
230 } // namespace blink 231 } // namespace blink
231 232
232 #endif // WebLayer_h 233 #endif // WebLayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698