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