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 CCLayerTreeHostImpl_h | 5 #ifndef CCLayerTreeHostImpl_h |
6 #define CCLayerTreeHostImpl_h | 6 #define CCLayerTreeHostImpl_h |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/time.h" | 9 #include "base/time.h" |
10 #include "CCAnimationEvents.h" | 10 #include "CCAnimationEvents.h" |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 | 199 |
200 void setViewportSize(const IntSize& layoutViewportSize, const IntSize& devic
eViewportSize); | 200 void setViewportSize(const IntSize& layoutViewportSize, const IntSize& devic
eViewportSize); |
201 const IntSize& layoutViewportSize() const { return m_layoutViewportSize; } | 201 const IntSize& layoutViewportSize() const { return m_layoutViewportSize; } |
202 | 202 |
203 float deviceScaleFactor() const { return m_deviceScaleFactor; } | 203 float deviceScaleFactor() const { return m_deviceScaleFactor; } |
204 void setDeviceScaleFactor(float); | 204 void setDeviceScaleFactor(float); |
205 | 205 |
206 float pageScaleFactor() const; | 206 float pageScaleFactor() const; |
207 void setPageScaleFactorAndLimits(float pageScaleFactor, float minPageScaleFa
ctor, float maxPageScaleFactor); | 207 void setPageScaleFactorAndLimits(float pageScaleFactor, float minPageScaleFa
ctor, float maxPageScaleFactor); |
208 | 208 |
209 PassOwnPtr<CCScrollAndScaleSet> processScrollDeltas(); | 209 scoped_ptr<CCScrollAndScaleSet> processScrollDeltas(); |
210 WebKit::WebTransformationMatrix implTransform() const; | 210 WebKit::WebTransformationMatrix implTransform() const; |
211 | 211 |
212 void startPageScaleAnimation(const IntSize& tragetPosition, bool useAnchor,
float scale, double durationSec); | 212 void startPageScaleAnimation(const IntSize& tragetPosition, bool useAnchor,
float scale, double durationSec); |
213 | 213 |
214 SkColor backgroundColor() const { return m_backgroundColor; } | 214 SkColor backgroundColor() const { return m_backgroundColor; } |
215 void setBackgroundColor(SkColor color) { m_backgroundColor = color; } | 215 void setBackgroundColor(SkColor color) { m_backgroundColor = color; } |
216 | 216 |
217 bool hasTransparentBackground() const { return m_hasTransparentBackground; } | 217 bool hasTransparentBackground() const { return m_hasTransparentBackground; } |
218 void setHasTransparentBackground(bool transparent) { m_hasTransparentBackgro
und = transparent; } | 218 void setHasTransparentBackground(bool transparent) { m_hasTransparentBackgro
und = transparent; } |
219 | 219 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 | 347 |
348 size_t m_numImplThreadScrolls; | 348 size_t m_numImplThreadScrolls; |
349 size_t m_numMainThreadScrolls; | 349 size_t m_numMainThreadScrolls; |
350 | 350 |
351 DISALLOW_COPY_AND_ASSIGN(CCLayerTreeHostImpl); | 351 DISALLOW_COPY_AND_ASSIGN(CCLayerTreeHostImpl); |
352 }; | 352 }; |
353 | 353 |
354 }; | 354 }; |
355 | 355 |
356 #endif | 356 #endif |
OLD | NEW |