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 "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 gfx::Vector2d scrollOffset() const { return m_scrollOffset; } | 209 gfx::Vector2d scrollOffset() const { return m_scrollOffset; } |
210 void setScrollOffset(gfx::Vector2d); | 210 void setScrollOffset(gfx::Vector2d); |
211 | 211 |
212 gfx::Vector2d maxScrollOffset() const {return m_maxScrollOffset; } | 212 gfx::Vector2d maxScrollOffset() const {return m_maxScrollOffset; } |
213 void setMaxScrollOffset(gfx::Vector2d); | 213 void setMaxScrollOffset(gfx::Vector2d); |
214 | 214 |
215 const gfx::Vector2dF& scrollDelta() const { return m_scrollDelta; } | 215 const gfx::Vector2dF& scrollDelta() const { return m_scrollDelta; } |
216 void setScrollDelta(const gfx::Vector2dF&); | 216 void setScrollDelta(const gfx::Vector2dF&); |
217 | 217 |
218 const gfx::Transform& implTransform() const { return m_implTransform; } | 218 const gfx::Transform& implTransform() const { return m_implTransform; } |
219 void setImplTransform(const gfx::Transform& transform); | 219 virtual void setImplTransform(const gfx::Transform& transform); |
220 | 220 |
221 const gfx::Vector2d& sentScrollDelta() const { return m_sentScrollDelta; } | 221 const gfx::Vector2d& sentScrollDelta() const { return m_sentScrollDelta; } |
222 void setSentScrollDelta(const gfx::Vector2d& sentScrollDelta); | 222 void setSentScrollDelta(const gfx::Vector2d& sentScrollDelta); |
223 | 223 |
224 // Returns the delta of the scroll that was outside of the bounds of the ini
tial scroll | 224 // Returns the delta of the scroll that was outside of the bounds of the ini
tial scroll |
225 gfx::Vector2dF scrollBy(const gfx::Vector2dF& scroll); | 225 gfx::Vector2dF scrollBy(const gfx::Vector2dF& scroll); |
226 | 226 |
227 bool scrollable() const { return m_scrollable; } | 227 bool scrollable() const { return m_scrollable; } |
228 void setScrollable(bool scrollable) { m_scrollable = scrollable; } | 228 void setScrollable(bool scrollable) { m_scrollable = scrollable; } |
229 | 229 |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 // Group of properties that need to be computed based on the layer tree | 410 // Group of properties that need to be computed based on the layer tree |
411 // hierarchy before layers can be drawn. | 411 // hierarchy before layers can be drawn. |
412 DrawProperties<LayerImpl, RenderSurfaceImpl> m_drawProperties; | 412 DrawProperties<LayerImpl, RenderSurfaceImpl> m_drawProperties; |
413 | 413 |
414 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 414 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
415 }; | 415 }; |
416 | 416 |
417 } | 417 } |
418 | 418 |
419 #endif // CC_LAYER_IMPL_H_ | 419 #endif // CC_LAYER_IMPL_H_ |
OLD | NEW |