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 12 matching lines...) Expand all Loading... |
23 | 23 |
24 class WebLayerTreeViewImpl : public WebLayerTreeView, public cc::LayerTreeHostCl
ient { | 24 class WebLayerTreeViewImpl : public WebLayerTreeView, public cc::LayerTreeHostCl
ient { |
25 public: | 25 public: |
26 WEBKIT_COMPOSITOR_BINDINGS_EXPORT explicit WebLayerTreeViewImpl( | 26 WEBKIT_COMPOSITOR_BINDINGS_EXPORT explicit WebLayerTreeViewImpl( |
27 WebLayerTreeViewClient*); | 27 WebLayerTreeViewClient*); |
28 virtual ~WebLayerTreeViewImpl(); | 28 virtual ~WebLayerTreeViewImpl(); |
29 | 29 |
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 WEBKIT_COMPOSITOR_BINDINGS_EXPORT cc::LayerTreeHost* layer_tree_host() const
; |
| 34 |
33 // WebLayerTreeView implementation. | 35 // WebLayerTreeView implementation. |
34 virtual void setSurfaceReady() OVERRIDE; | 36 virtual void setSurfaceReady() OVERRIDE; |
35 virtual void setRootLayer(const WebLayer&) OVERRIDE; | 37 virtual void setRootLayer(const WebLayer&) OVERRIDE; |
36 virtual void clearRootLayer() OVERRIDE; | 38 virtual void clearRootLayer() OVERRIDE; |
37 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; |
38 virtual WebSize layoutViewportSize() const OVERRIDE; | 40 virtual WebSize layoutViewportSize() const OVERRIDE; |
39 virtual WebSize deviceViewportSize() const OVERRIDE; | 41 virtual WebSize deviceViewportSize() const OVERRIDE; |
40 virtual WebFloatPoint adjustEventPointForPinchZoom(const WebFloatPoint& poin
t) const OVERRIDE; | 42 virtual WebFloatPoint adjustEventPointForPinchZoom(const WebFloatPoint& poin
t) const OVERRIDE; |
41 virtual void setDeviceScaleFactor(float) OVERRIDE; | 43 virtual void setDeviceScaleFactor(float) OVERRIDE; |
42 virtual float deviceScaleFactor() const OVERRIDE; | 44 virtual float deviceScaleFactor() const OVERRIDE; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 |