OLD | NEW |
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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 void setScrollable(bool); | 158 void setScrollable(bool); |
159 bool scrollable() const { return m_scrollable; } | 159 bool scrollable() const { return m_scrollable; } |
160 | 160 |
161 void setShouldScrollOnMainThread(bool); | 161 void setShouldScrollOnMainThread(bool); |
162 bool shouldScrollOnMainThread() const { return m_shouldScrollOnMainThread; } | 162 bool shouldScrollOnMainThread() const { return m_shouldScrollOnMainThread; } |
163 | 163 |
164 void setHaveWheelEventHandlers(bool); | 164 void setHaveWheelEventHandlers(bool); |
165 bool haveWheelEventHandlers() const { return m_haveWheelEventHandlers; } | 165 bool haveWheelEventHandlers() const { return m_haveWheelEventHandlers; } |
166 | 166 |
167 void setNonFastScrollableRegion(const Region&); | 167 void setNonFastScrollableRegion(const Region&); |
168 void setNonFastScrollableRegionChanged() { m_nonFastScrollableRegionChanged
= true; } | |
169 const Region& nonFastScrollableRegion() const { return m_nonFastScrollableRe
gion; } | 168 const Region& nonFastScrollableRegion() const { return m_nonFastScrollableRe
gion; } |
170 | 169 |
171 void setTouchEventHandlerRegion(const Region&); | 170 void setTouchEventHandlerRegion(const Region&); |
172 void setTouchEventHandlerRegionChanged() { m_touchEventHandlerRegionChanged
= true; } | |
173 const Region& touchEventHandlerRegion() const { return m_touchEventHandlerRe
gion; } | 171 const Region& touchEventHandlerRegion() const { return m_touchEventHandlerRe
gion; } |
174 | 172 |
175 void setLayerScrollClient(WebKit::WebLayerScrollClient* layerScrollClient) {
m_layerScrollClient = layerScrollClient; } | 173 void setLayerScrollClient(WebKit::WebLayerScrollClient* layerScrollClient) {
m_layerScrollClient = layerScrollClient; } |
176 | 174 |
177 void setDrawCheckerboardForMissingTiles(bool); | 175 void setDrawCheckerboardForMissingTiles(bool); |
178 bool drawCheckerboardForMissingTiles() const { return m_drawCheckerboardForM
issingTiles; } | 176 bool drawCheckerboardForMissingTiles() const { return m_drawCheckerboardForM
issingTiles; } |
179 | 177 |
180 bool forceRenderSurface() const { return m_forceRenderSurface; } | 178 bool forceRenderSurface() const { return m_forceRenderSurface; } |
181 void setForceRenderSurface(bool); | 179 void setForceRenderSurface(bool); |
182 | 180 |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 | 353 |
356 // Layer properties. | 354 // Layer properties. |
357 gfx::Size m_bounds; | 355 gfx::Size m_bounds; |
358 | 356 |
359 gfx::Vector2d m_scrollOffset; | 357 gfx::Vector2d m_scrollOffset; |
360 gfx::Vector2d m_maxScrollOffset; | 358 gfx::Vector2d m_maxScrollOffset; |
361 bool m_scrollable; | 359 bool m_scrollable; |
362 bool m_shouldScrollOnMainThread; | 360 bool m_shouldScrollOnMainThread; |
363 bool m_haveWheelEventHandlers; | 361 bool m_haveWheelEventHandlers; |
364 Region m_nonFastScrollableRegion; | 362 Region m_nonFastScrollableRegion; |
365 bool m_nonFastScrollableRegionChanged; | |
366 Region m_touchEventHandlerRegion; | 363 Region m_touchEventHandlerRegion; |
367 bool m_touchEventHandlerRegionChanged; | |
368 gfx::PointF m_position; | 364 gfx::PointF m_position; |
369 gfx::PointF m_anchorPoint; | 365 gfx::PointF m_anchorPoint; |
370 SkColor m_backgroundColor; | 366 SkColor m_backgroundColor; |
371 std::string m_debugName; | 367 std::string m_debugName; |
372 float m_opacity; | 368 float m_opacity; |
373 skia::RefPtr<SkImageFilter> m_filter; | 369 skia::RefPtr<SkImageFilter> m_filter; |
374 WebKit::WebFilterOperations m_filters; | 370 WebKit::WebFilterOperations m_filters; |
375 WebKit::WebFilterOperations m_backgroundFilters; | 371 WebKit::WebFilterOperations m_backgroundFilters; |
376 float m_anchorPointZ; | 372 float m_anchorPointZ; |
377 bool m_isContainerForFixedPositionLayers; | 373 bool m_isContainerForFixedPositionLayers; |
(...skipping 24 matching lines...) Expand all Loading... |
402 WebKit::WebLayerScrollClient* m_layerScrollClient; | 398 WebKit::WebLayerScrollClient* m_layerScrollClient; |
403 | 399 |
404 DrawProperties<Layer, RenderSurface> m_drawProperties; | 400 DrawProperties<Layer, RenderSurface> m_drawProperties; |
405 }; | 401 }; |
406 | 402 |
407 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped
_refptr<Layer> >::iterator, void*); | 403 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped
_refptr<Layer> >::iterator, void*); |
408 | 404 |
409 } // namespace cc | 405 } // namespace cc |
410 | 406 |
411 #endif // CC_LAYER_H_ | 407 #endif // CC_LAYER_H_ |
OLD | NEW |