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

Side by Side Diff: webkit/compositor_bindings/web_layer_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 WebLayerImpl_h 5 #ifndef WebLayerImpl_h
6 #define WebLayerImpl_h 6 #define WebLayerImpl_h
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayer.h" 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayer.h"
10 #include "webkit/compositor_bindings/webkit_compositor_bindings_export.h"
10 11
11 namespace cc { 12 namespace cc {
12 class Layer; 13 class Layer;
13 } 14 }
14 15
15 // TODO(senorblanco): Remove this once WebKit changes have landed. 16 // TODO(senorblanco): Remove this once WebKit changes have landed.
16 class SkImageFilter; 17 class SkImageFilter;
17 18
18 namespace WebKit { 19 namespace WebKit {
19 20
20 class WebLayerImpl : public WebLayer { 21 class WebLayerImpl : public WebLayer {
21 public: 22 public:
22 WebLayerImpl(); 23 WEBKIT_COMPOSITOR_BINDINGS_EXPORT WebLayerImpl();
23 explicit WebLayerImpl(scoped_refptr<cc::Layer>); 24 WEBKIT_COMPOSITOR_BINDINGS_EXPORT explicit WebLayerImpl(scoped_refptr<cc::La yer>);
24 virtual ~WebLayerImpl(); 25 virtual ~WebLayerImpl();
25 26
26 // WebLayer implementation. 27 // WebLayer implementation.
27 virtual int id() const OVERRIDE; 28 virtual int id() const OVERRIDE;
28 virtual void invalidateRect(const WebFloatRect&) OVERRIDE; 29 virtual void invalidateRect(const WebFloatRect&) OVERRIDE;
29 virtual void invalidate() OVERRIDE; 30 virtual void invalidate() OVERRIDE;
30 virtual void addChild(WebLayer*) OVERRIDE; 31 virtual void addChild(WebLayer*) OVERRIDE;
31 virtual void insertChild(WebLayer*, size_t index) OVERRIDE; 32 virtual void insertChild(WebLayer*, size_t index) OVERRIDE;
32 virtual void replaceChild(WebLayer* reference, WebLayer* newLayer) OVERRIDE; 33 virtual void replaceChild(WebLayer* reference, WebLayer* newLayer) OVERRIDE;
33 virtual void removeFromParent() OVERRIDE; 34 virtual void removeFromParent() OVERRIDE;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 97
97 cc::Layer* layer() const; 98 cc::Layer* layer() const;
98 99
99 protected: 100 protected:
100 scoped_refptr<cc::Layer> m_layer; 101 scoped_refptr<cc::Layer> m_layer;
101 }; 102 };
102 103
103 } // namespace WebKit 104 } // namespace WebKit
104 105
105 #endif // WebLayerImpl_h 106 #endif // WebLayerImpl_h
OLDNEW
« no previous file with comments | « webkit/compositor_bindings/web_io_surface_layer_impl.cc ('k') | webkit/compositor_bindings/web_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698