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

Side by Side Diff: cc/layer.h

Issue 11377013: Add touchEventHandlerRegion to Layer and LayerImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed OVERRIDE from web_layer_impl Created 8 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | cc/layer.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 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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 CC_LAYER_H_ 5 #ifndef CC_LAYER_H_
6 #define CC_LAYER_H_ 6 #define CC_LAYER_H_
7 7
8 #include "IntPoint.h" 8 #include "IntPoint.h"
9 #include "Region.h" 9 #include "Region.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 void setShouldScrollOnMainThread(bool); 141 void setShouldScrollOnMainThread(bool);
142 bool shouldScrollOnMainThread() const { return m_shouldScrollOnMainThread; } 142 bool shouldScrollOnMainThread() const { return m_shouldScrollOnMainThread; }
143 143
144 void setHaveWheelEventHandlers(bool); 144 void setHaveWheelEventHandlers(bool);
145 bool haveWheelEventHandlers() const { return m_haveWheelEventHandlers; } 145 bool haveWheelEventHandlers() const { return m_haveWheelEventHandlers; }
146 146
147 void setNonFastScrollableRegion(const Region&); 147 void setNonFastScrollableRegion(const Region&);
148 void setNonFastScrollableRegionChanged() { m_nonFastScrollableRegionChanged = true; } 148 void setNonFastScrollableRegionChanged() { m_nonFastScrollableRegionChanged = true; }
149 const Region& nonFastScrollableRegion() const { return m_nonFastScrollableRe gion; } 149 const Region& nonFastScrollableRegion() const { return m_nonFastScrollableRe gion; }
150 150
151 void setTouchEventHandlerRegion(const Region&);
152 void setTouchEventHandlerRegionChanged() { m_touchEventHandlerRegionChanged = true; }
153 const Region& touchEventHandlerRegion() const { return m_touchEventHandlerRe gion; }
154
151 void setLayerScrollClient(WebKit::WebLayerScrollClient* layerScrollClient) { m_layerScrollClient = layerScrollClient; } 155 void setLayerScrollClient(WebKit::WebLayerScrollClient* layerScrollClient) { m_layerScrollClient = layerScrollClient; }
152 156
153 void setDrawCheckerboardForMissingTiles(bool); 157 void setDrawCheckerboardForMissingTiles(bool);
154 bool drawCheckerboardForMissingTiles() const { return m_drawCheckerboardForM issingTiles; } 158 bool drawCheckerboardForMissingTiles() const { return m_drawCheckerboardForM issingTiles; }
155 159
156 bool forceRenderSurface() const { return m_forceRenderSurface; } 160 bool forceRenderSurface() const { return m_forceRenderSurface; }
157 void setForceRenderSurface(bool); 161 void setForceRenderSurface(bool);
158 162
159 IntSize scrollDelta() const { return IntSize(); } 163 IntSize scrollDelta() const { return IntSize(); }
160 164
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 // Uses layer's content space. 348 // Uses layer's content space.
345 gfx::Rect m_visibleContentRect; 349 gfx::Rect m_visibleContentRect;
346 350
347 IntPoint m_scrollPosition; 351 IntPoint m_scrollPosition;
348 IntSize m_maxScrollPosition; 352 IntSize m_maxScrollPosition;
349 bool m_scrollable; 353 bool m_scrollable;
350 bool m_shouldScrollOnMainThread; 354 bool m_shouldScrollOnMainThread;
351 bool m_haveWheelEventHandlers; 355 bool m_haveWheelEventHandlers;
352 Region m_nonFastScrollableRegion; 356 Region m_nonFastScrollableRegion;
353 bool m_nonFastScrollableRegionChanged; 357 bool m_nonFastScrollableRegionChanged;
358 Region m_touchEventHandlerRegion;
359 bool m_touchEventHandlerRegionChanged;
354 gfx::PointF m_position; 360 gfx::PointF m_position;
355 gfx::PointF m_anchorPoint; 361 gfx::PointF m_anchorPoint;
356 SkColor m_backgroundColor; 362 SkColor m_backgroundColor;
357 SkColor m_debugBorderColor; 363 SkColor m_debugBorderColor;
358 float m_debugBorderWidth; 364 float m_debugBorderWidth;
359 std::string m_debugName; 365 std::string m_debugName;
360 float m_opacity; 366 float m_opacity;
361 SkImageFilter* m_filter; 367 SkImageFilter* m_filter;
362 WebKit::WebFilterOperations m_filters; 368 WebKit::WebFilterOperations m_filters;
363 WebKit::WebFilterOperations m_backgroundFilters; 369 WebKit::WebFilterOperations m_backgroundFilters;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 408
403 WebKit::WebAnimationDelegate* m_layerAnimationDelegate; 409 WebKit::WebAnimationDelegate* m_layerAnimationDelegate;
404 WebKit::WebLayerScrollClient* m_layerScrollClient; 410 WebKit::WebLayerScrollClient* m_layerScrollClient;
405 }; 411 };
406 412
407 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped _refptr<Layer> >::iterator, void*); 413 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped _refptr<Layer> >::iterator, void*);
408 414
409 } // namespace cc 415 } // namespace cc
410 416
411 #endif // CC_LAYER_H_ 417 #endif // CC_LAYER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698