Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(308)

Side by Side Diff: webkit/compositor_bindings/web_layer_tree_view_impl.h

Issue 11617016: Componentize webkit/compositor_bindings target (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add ui dep to cc_test_support Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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"
11 #include "webkit/compositor_bindings/webkit_compositor_bindings_export.h"
11 12
12 namespace cc { 13 namespace cc {
13 class FontAtlas; 14 class FontAtlas;
14 class LayerTreeHost; 15 class LayerTreeHost;
15 class Thread; 16 class Thread;
16 } 17 }
17 18
18 namespace WebKit { 19 namespace WebKit {
19 class WebLayer; 20 class WebLayer;
20 class WebLayerTreeViewClient; 21 class WebLayerTreeViewClient;
21 class WebLayerTreeViewClientAdapter; 22 class WebLayerTreeViewClientAdapter;
22 23
23 class WebLayerTreeViewImpl : public WebLayerTreeView, public cc::LayerTreeHostCl ient { 24 class WebLayerTreeViewImpl : public WebLayerTreeView, public cc::LayerTreeHostCl ient {
24 public: 25 public:
25 explicit WebLayerTreeViewImpl(WebLayerTreeViewClient*); 26 WEBKIT_COMPOSITOR_BINDINGS_EXPORT explicit WebLayerTreeViewImpl(
27 WebLayerTreeViewClient*);
26 virtual ~WebLayerTreeViewImpl(); 28 virtual ~WebLayerTreeViewImpl();
27 29
28 bool initialize(const Settings&, scoped_ptr<cc::Thread> implThread); 30 WEBKIT_COMPOSITOR_BINDINGS_EXPORT bool initialize(
31 const Settings&, scoped_ptr<cc::Thread> implThread);
29 32
30 // WebLayerTreeView implementation. 33 // WebLayerTreeView implementation.
31 virtual void setSurfaceReady() OVERRIDE; 34 virtual void setSurfaceReady() OVERRIDE;
32 virtual void setRootLayer(const WebLayer&) OVERRIDE; 35 virtual void setRootLayer(const WebLayer&) OVERRIDE;
33 virtual void clearRootLayer() OVERRIDE; 36 virtual void clearRootLayer() OVERRIDE;
34 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;
35 virtual WebSize layoutViewportSize() const OVERRIDE; 38 virtual WebSize layoutViewportSize() const OVERRIDE;
36 virtual WebSize deviceViewportSize() const OVERRIDE; 39 virtual WebSize deviceViewportSize() const OVERRIDE;
37 virtual WebFloatPoint adjustEventPointForPinchZoom(const WebFloatPoint& poin t) const OVERRIDE; 40 virtual WebFloatPoint adjustEventPointForPinchZoom(const WebFloatPoint& poin t) const OVERRIDE;
38 virtual void setDeviceScaleFactor(float) OVERRIDE; 41 virtual void setDeviceScaleFactor(float) OVERRIDE;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 virtual scoped_ptr<cc::FontAtlas> createFontAtlas(); 76 virtual scoped_ptr<cc::FontAtlas> createFontAtlas();
74 77
75 private: 78 private:
76 WebLayerTreeViewClient* m_client; 79 WebLayerTreeViewClient* m_client;
77 scoped_ptr<cc::LayerTreeHost> m_layerTreeHost; 80 scoped_ptr<cc::LayerTreeHost> m_layerTreeHost;
78 }; 81 };
79 82
80 } // namespace WebKit 83 } // namespace WebKit
81 84
82 #endif // WebLayerTreeViewImpl_h 85 #endif // WebLayerTreeViewImpl_h
OLDNEW
« no previous file with comments | « webkit/compositor_bindings/web_layer_impl.cc ('k') | webkit/compositor_bindings/web_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698