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 CCLayerImpl_h | 5 #ifndef CCLayerImpl_h |
6 #define CCLayerImpl_h | 6 #define CCLayerImpl_h |
7 | 7 |
| 8 #include "FloatSize.h" |
8 #include "Region.h" | 9 #include "Region.h" |
9 #include "base/logging.h" | 10 #include "base/logging.h" |
10 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
11 #include "cc/input_handler.h" | 12 #include "cc/input_handler.h" |
12 #include "cc/layer_animation_controller.h" | 13 #include "cc/layer_animation_controller.h" |
13 #include "cc/render_pass.h" | 14 #include "cc/render_pass.h" |
14 #include "cc/render_surface_impl.h" | 15 #include "cc/render_surface_impl.h" |
15 #include "cc/resource_provider.h" | 16 #include "cc/resource_provider.h" |
16 #include "cc/scoped_ptr_vector.h" | 17 #include "cc/scoped_ptr_vector.h" |
17 #include "cc/shared_quad_state.h" | 18 #include "cc/shared_quad_state.h" |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 | 210 |
210 bool haveWheelEventHandlers() const { return m_haveWheelEventHandlers; } | 211 bool haveWheelEventHandlers() const { return m_haveWheelEventHandlers; } |
211 void setHaveWheelEventHandlers(bool haveWheelEventHandlers) { m_haveWheelEve
ntHandlers = haveWheelEventHandlers; } | 212 void setHaveWheelEventHandlers(bool haveWheelEventHandlers) { m_haveWheelEve
ntHandlers = haveWheelEventHandlers; } |
212 | 213 |
213 const Region& nonFastScrollableRegion() const { return m_nonFastScrollableRe
gion; } | 214 const Region& nonFastScrollableRegion() const { return m_nonFastScrollableRe
gion; } |
214 void setNonFastScrollableRegion(const Region& region) { m_nonFastScrollableR
egion = region; } | 215 void setNonFastScrollableRegion(const Region& region) { m_nonFastScrollableR
egion = region; } |
215 | 216 |
216 void setDrawCheckerboardForMissingTiles(bool checkerboard) { m_drawCheckerbo
ardForMissingTiles = checkerboard; } | 217 void setDrawCheckerboardForMissingTiles(bool checkerboard) { m_drawCheckerbo
ardForMissingTiles = checkerboard; } |
217 bool drawCheckerboardForMissingTiles() const; | 218 bool drawCheckerboardForMissingTiles() const; |
218 | 219 |
219 InputHandlerClient::ScrollStatus tryScroll(const IntPoint& viewportPoint, In
putHandlerClient::ScrollInputType) const; | 220 InputHandlerClient::ScrollStatus tryScroll(const gfx::Point& viewportPoint,
InputHandlerClient::ScrollInputType) const; |
220 | 221 |
221 const gfx::Rect& visibleContentRect() const { return m_visibleContentRect; } | 222 const gfx::Rect& visibleContentRect() const { return m_visibleContentRect; } |
222 void setVisibleContentRect(const gfx::Rect& visibleContentRect) { m_visibleC
ontentRect = visibleContentRect; } | 223 void setVisibleContentRect(const gfx::Rect& visibleContentRect) { m_visibleC
ontentRect = visibleContentRect; } |
223 | 224 |
224 bool doubleSided() const { return m_doubleSided; } | 225 bool doubleSided() const { return m_doubleSided; } |
225 void setDoubleSided(bool); | 226 void setDoubleSided(bool); |
226 | 227 |
227 void setTransform(const WebKit::WebTransformationMatrix&); | 228 void setTransform(const WebKit::WebTransformationMatrix&); |
228 bool transformIsAnimating() const; | 229 bool transformIsAnimating() const; |
229 | 230 |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 | 407 |
407 // Manages scrollbars for this layer | 408 // Manages scrollbars for this layer |
408 scoped_ptr<ScrollbarAnimationController> m_scrollbarAnimationController; | 409 scoped_ptr<ScrollbarAnimationController> m_scrollbarAnimationController; |
409 }; | 410 }; |
410 | 411 |
411 void sortLayers(std::vector<LayerImpl*>::iterator first, std::vector<LayerImpl*>
::iterator end, LayerSorter*); | 412 void sortLayers(std::vector<LayerImpl*>::iterator first, std::vector<LayerImpl*>
::iterator end, LayerSorter*); |
412 | 413 |
413 } | 414 } |
414 | 415 |
415 #endif // CCLayerImpl_h | 416 #endif // CCLayerImpl_h |
OLD | NEW |