| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_IMPL_H_ | 5 #ifndef CC_LAYER_IMPL_H_ |
| 6 #define CC_LAYER_IMPL_H_ | 6 #define CC_LAYER_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "FloatSize.h" | 10 #include "FloatSize.h" |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 | 210 |
| 211 bool shouldScrollOnMainThread() const { return m_shouldScrollOnMainThread; } | 211 bool shouldScrollOnMainThread() const { return m_shouldScrollOnMainThread; } |
| 212 void setShouldScrollOnMainThread(bool shouldScrollOnMainThread) { m_shouldSc
rollOnMainThread = shouldScrollOnMainThread; } | 212 void setShouldScrollOnMainThread(bool shouldScrollOnMainThread) { m_shouldSc
rollOnMainThread = shouldScrollOnMainThread; } |
| 213 | 213 |
| 214 bool haveWheelEventHandlers() const { return m_haveWheelEventHandlers; } | 214 bool haveWheelEventHandlers() const { return m_haveWheelEventHandlers; } |
| 215 void setHaveWheelEventHandlers(bool haveWheelEventHandlers) { m_haveWheelEve
ntHandlers = haveWheelEventHandlers; } | 215 void setHaveWheelEventHandlers(bool haveWheelEventHandlers) { m_haveWheelEve
ntHandlers = haveWheelEventHandlers; } |
| 216 | 216 |
| 217 const Region& nonFastScrollableRegion() const { return m_nonFastScrollableRe
gion; } | 217 const Region& nonFastScrollableRegion() const { return m_nonFastScrollableRe
gion; } |
| 218 void setNonFastScrollableRegion(const Region& region) { m_nonFastScrollableR
egion = region; } | 218 void setNonFastScrollableRegion(const Region& region) { m_nonFastScrollableR
egion = region; } |
| 219 | 219 |
| 220 const Region& touchEventHandlerRegion() const { return m_touchEventHandlerRe
gion; } |
| 221 void setTouchEventHandlerRegion(const Region& region) { m_touchEventHandlerR
egion = region; } |
| 222 |
| 220 void setDrawCheckerboardForMissingTiles(bool checkerboard) { m_drawCheckerbo
ardForMissingTiles = checkerboard; } | 223 void setDrawCheckerboardForMissingTiles(bool checkerboard) { m_drawCheckerbo
ardForMissingTiles = checkerboard; } |
| 221 bool drawCheckerboardForMissingTiles() const; | 224 bool drawCheckerboardForMissingTiles() const; |
| 222 | 225 |
| 223 InputHandlerClient::ScrollStatus tryScroll(const gfx::PointF& screenSpacePoi
nt, InputHandlerClient::ScrollInputType) const; | 226 InputHandlerClient::ScrollStatus tryScroll(const gfx::PointF& screenSpacePoi
nt, InputHandlerClient::ScrollInputType) const; |
| 224 | 227 |
| 225 const gfx::Rect& visibleContentRect() const { return m_visibleContentRect; } | 228 const gfx::Rect& visibleContentRect() const { return m_visibleContentRect; } |
| 226 void setVisibleContentRect(const gfx::Rect& visibleContentRect) { m_visibleC
ontentRect = visibleContentRect; } | 229 void setVisibleContentRect(const gfx::Rect& visibleContentRect) { m_visibleC
ontentRect = visibleContentRect; } |
| 227 | 230 |
| 228 bool doubleSided() const { return m_doubleSided; } | 231 bool doubleSided() const { return m_doubleSided; } |
| 229 void setDoubleSided(bool); | 232 void setDoubleSided(bool); |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 float m_anchorPointZ; | 317 float m_anchorPointZ; |
| 315 gfx::Size m_bounds; | 318 gfx::Size m_bounds; |
| 316 gfx::Size m_contentBounds; | 319 gfx::Size m_contentBounds; |
| 317 float m_contentsScaleX; | 320 float m_contentsScaleX; |
| 318 float m_contentsScaleY; | 321 float m_contentsScaleY; |
| 319 IntPoint m_scrollPosition; | 322 IntPoint m_scrollPosition; |
| 320 bool m_scrollable; | 323 bool m_scrollable; |
| 321 bool m_shouldScrollOnMainThread; | 324 bool m_shouldScrollOnMainThread; |
| 322 bool m_haveWheelEventHandlers; | 325 bool m_haveWheelEventHandlers; |
| 323 Region m_nonFastScrollableRegion; | 326 Region m_nonFastScrollableRegion; |
| 327 Region m_touchEventHandlerRegion; |
| 324 SkColor m_backgroundColor; | 328 SkColor m_backgroundColor; |
| 325 | 329 |
| 326 // Whether the "back" of this layer should draw. | 330 // Whether the "back" of this layer should draw. |
| 327 bool m_doubleSided; | 331 bool m_doubleSided; |
| 328 | 332 |
| 329 // Tracks if drawing-related properties have changed since last redraw. | 333 // Tracks if drawing-related properties have changed since last redraw. |
| 330 bool m_layerPropertyChanged; | 334 bool m_layerPropertyChanged; |
| 331 | 335 |
| 332 // Indicates that a property has changed on this layer that would not | 336 // Indicates that a property has changed on this layer that would not |
| 333 // affect the pixels on its target surface, but would require redrawing | 337 // affect the pixels on its target surface, but would require redrawing |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 scoped_ptr<ScrollbarAnimationController> m_scrollbarAnimationController; | 416 scoped_ptr<ScrollbarAnimationController> m_scrollbarAnimationController; |
| 413 | 417 |
| 414 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 418 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 415 }; | 419 }; |
| 416 | 420 |
| 417 void sortLayers(std::vector<LayerImpl*>::iterator first, std::vector<LayerImpl*>
::iterator end, LayerSorter*); | 421 void sortLayers(std::vector<LayerImpl*>::iterator first, std::vector<LayerImpl*>
::iterator end, LayerSorter*); |
| 418 | 422 |
| 419 } | 423 } |
| 420 | 424 |
| 421 #endif // CC_LAYER_IMPL_H_ | 425 #endif // CC_LAYER_IMPL_H_ |
| OLD | NEW |