| 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 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 WEBKIT_COMPOSITOR_BINDINGS_EXPORT cc::LayerTreeHost* layer_tree_host() const
; | 33 WEBKIT_COMPOSITOR_BINDINGS_EXPORT cc::LayerTreeHost* layer_tree_host() const
; |
| 34 | 34 |
| 35 // WebLayerTreeView implementation. | 35 // WebLayerTreeView implementation. |
| 36 virtual void setSurfaceReady() OVERRIDE; | 36 virtual void setSurfaceReady() OVERRIDE; |
| 37 virtual void setRootLayer(const WebLayer&) OVERRIDE; | 37 virtual void setRootLayer(const WebLayer&) OVERRIDE; |
| 38 virtual void clearRootLayer() OVERRIDE; | 38 virtual void clearRootLayer() OVERRIDE; |
| 39 virtual void setViewportSize(const WebSize& layoutViewportSize, const WebSiz
e& deviceViewportSize = WebSize()) OVERRIDE; | 39 virtual void setViewportSize(const WebSize& layoutViewportSize, const WebSiz
e& deviceViewportSize = WebSize()) OVERRIDE; |
| 40 virtual WebSize layoutViewportSize() const OVERRIDE; | 40 virtual WebSize layoutViewportSize() const OVERRIDE; |
| 41 virtual WebSize deviceViewportSize() const OVERRIDE; | 41 virtual WebSize deviceViewportSize() const OVERRIDE; |
| 42 virtual WebFloatPoint adjustEventPointForPinchZoom(const WebFloatPoint& poin
t) const OVERRIDE; | 42 virtual WebFloatPoint adjustEventPointForPinchZoom(const WebFloatPoint& poin
t) const; // FIXME: remove this after WebKit roll. |
| 43 virtual void setDeviceScaleFactor(float) OVERRIDE; | 43 virtual void setDeviceScaleFactor(float) OVERRIDE; |
| 44 virtual float deviceScaleFactor() const OVERRIDE; | 44 virtual float deviceScaleFactor() const OVERRIDE; |
| 45 virtual void setBackgroundColor(WebColor) OVERRIDE; | 45 virtual void setBackgroundColor(WebColor) OVERRIDE; |
| 46 virtual void setHasTransparentBackground(bool) OVERRIDE; | 46 virtual void setHasTransparentBackground(bool) OVERRIDE; |
| 47 virtual void setVisible(bool) OVERRIDE; | 47 virtual void setVisible(bool) OVERRIDE; |
| 48 virtual void setPageScaleFactorAndLimits(float pageScaleFactor, float minimu
m, float maximum) OVERRIDE; | 48 virtual void setPageScaleFactorAndLimits(float pageScaleFactor, float minimu
m, float maximum) OVERRIDE; |
| 49 virtual void startPageScaleAnimation(const WebPoint& destination, bool useAn
chor, float newPageScale, double durationSec) OVERRIDE; | 49 virtual void startPageScaleAnimation(const WebPoint& destination, bool useAn
chor, float newPageScale, double durationSec) OVERRIDE; |
| 50 virtual void setNeedsAnimate() OVERRIDE; | 50 virtual void setNeedsAnimate() OVERRIDE; |
| 51 virtual void setNeedsRedraw() OVERRIDE; | 51 virtual void setNeedsRedraw() OVERRIDE; |
| 52 virtual bool commitRequested() const OVERRIDE; | 52 virtual bool commitRequested() const OVERRIDE; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 78 virtual scoped_ptr<cc::FontAtlas> createFontAtlas(); | 78 virtual scoped_ptr<cc::FontAtlas> createFontAtlas(); |
| 79 | 79 |
| 80 private: | 80 private: |
| 81 WebLayerTreeViewClient* m_client; | 81 WebLayerTreeViewClient* m_client; |
| 82 scoped_ptr<cc::LayerTreeHost> m_layerTreeHost; | 82 scoped_ptr<cc::LayerTreeHost> m_layerTreeHost; |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 } // namespace WebKit | 85 } // namespace WebKit |
| 86 | 86 |
| 87 #endif // WebLayerTreeViewImpl_h | 87 #endif // WebLayerTreeViewImpl_h |
| OLD | NEW |