| 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 WebLayerTreeViewImpl_h | 5 #ifndef WebLayerTreeViewImpl_h |
| 6 #define WebLayerTreeViewImpl_h | 6 #define WebLayerTreeViewImpl_h |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "cc/layer_tree_host_client.h" | 9 #include "cc/layer_tree_host_client.h" |
| 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayerTreeView.h" | 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayerTreeView.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 virtual float deviceScaleFactor() const OVERRIDE; | 42 virtual float deviceScaleFactor() const OVERRIDE; |
| 43 virtual void setBackgroundColor(WebColor) OVERRIDE; | 43 virtual void setBackgroundColor(WebColor) OVERRIDE; |
| 44 virtual void setHasTransparentBackground(bool) OVERRIDE; | 44 virtual void setHasTransparentBackground(bool) OVERRIDE; |
| 45 virtual void setVisible(bool) OVERRIDE; | 45 virtual void setVisible(bool) OVERRIDE; |
| 46 virtual void setPageScaleFactorAndLimits(float pageScaleFactor, float minimu
m, float maximum) OVERRIDE; | 46 virtual void setPageScaleFactorAndLimits(float pageScaleFactor, float minimu
m, float maximum) OVERRIDE; |
| 47 virtual void startPageScaleAnimation(const WebPoint& destination, bool useAn
chor, float newPageScale, double durationSec) OVERRIDE; | 47 virtual void startPageScaleAnimation(const WebPoint& destination, bool useAn
chor, float newPageScale, double durationSec) OVERRIDE; |
| 48 virtual void setNeedsAnimate() OVERRIDE; | 48 virtual void setNeedsAnimate() OVERRIDE; |
| 49 virtual void setNeedsRedraw() OVERRIDE; | 49 virtual void setNeedsRedraw() OVERRIDE; |
| 50 virtual bool commitRequested() const OVERRIDE; | 50 virtual bool commitRequested() const OVERRIDE; |
| 51 virtual void composite() OVERRIDE; | 51 virtual void composite() OVERRIDE; |
| 52 virtual void updateAnimations(double frameBeginTime) OVERRIDE; | 52 // TODO(ajuma): Remove this after WebKit bug 106594 (which switches to using
the 2-argument version) lands. |
| 53 virtual void updateAnimations(double frameBeginTime); |
| 54 virtual void updateAnimations(double monotonicFrameBeginTime, double wallClo
ckFrameBeginTime); |
| 53 virtual void didStopFlinging() OVERRIDE; | 55 virtual void didStopFlinging() OVERRIDE; |
| 54 virtual bool compositeAndReadback(void *pixels, const WebRect&) OVERRIDE; | 56 virtual bool compositeAndReadback(void *pixels, const WebRect&) OVERRIDE; |
| 55 virtual void finishAllRendering() OVERRIDE; | 57 virtual void finishAllRendering() OVERRIDE; |
| 56 virtual void setDeferCommits(bool deferCommits) OVERRIDE; | 58 virtual void setDeferCommits(bool deferCommits) OVERRIDE; |
| 57 virtual void renderingStats(WebRenderingStats&) const OVERRIDE; | 59 virtual void renderingStats(WebRenderingStats&) const OVERRIDE; |
| 58 virtual void setShowFPSCounter(bool show); | 60 virtual void setShowFPSCounter(bool show); |
| 59 virtual void setShowPaintRects(bool show); | 61 virtual void setShowPaintRects(bool show); |
| 60 virtual void setContinuousPaintingEnabled(bool); | 62 virtual void setContinuousPaintingEnabled(bool); |
| 61 | 63 |
| 62 // cc::LayerTreeHostClient implementation. | 64 // cc::LayerTreeHostClient implementation. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 76 virtual scoped_ptr<cc::FontAtlas> createFontAtlas(); | 78 virtual scoped_ptr<cc::FontAtlas> createFontAtlas(); |
| 77 | 79 |
| 78 private: | 80 private: |
| 79 WebLayerTreeViewClient* m_client; | 81 WebLayerTreeViewClient* m_client; |
| 80 scoped_ptr<cc::LayerTreeHost> m_layerTreeHost; | 82 scoped_ptr<cc::LayerTreeHost> m_layerTreeHost; |
| 81 }; | 83 }; |
| 82 | 84 |
| 83 } // namespace WebKit | 85 } // namespace WebKit |
| 84 | 86 |
| 85 #endif // WebLayerTreeViewImpl_h | 87 #endif // WebLayerTreeViewImpl_h |
| OLD | NEW |