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

Side by Side Diff: webkit/compositor_bindings/web_content_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 WebContentLayerImpl_h 5 #ifndef WebContentLayerImpl_h
6 #define WebContentLayerImpl_h 6 #define WebContentLayerImpl_h
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "cc/content_layer_client.h" 9 #include "cc/content_layer_client.h"
10 #include "third_party/WebKit/Source/Platform/chromium/public/WebContentLayer.h" 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebContentLayer.h"
11 #include "web_layer_impl.h" 11 #include "webkit/compositor_bindings/web_layer_impl.h"
12 #include "webkit/compositor_bindings/webkit_compositor_bindings_export.h"
12 13
13 namespace cc { 14 namespace cc {
14 class IntRect; 15 class IntRect;
15 class FloatRect; 16 class FloatRect;
16 } 17 }
17 18
18 namespace WebKit { 19 namespace WebKit {
19 class WebContentLayerClient; 20 class WebContentLayerClient;
20 21
21 class WebContentLayerImpl : public WebContentLayer, 22 class WebContentLayerImpl : public WebContentLayer,
22 public cc::ContentLayerClient { 23 public cc::ContentLayerClient {
23 public: 24 public:
24 explicit WebContentLayerImpl(WebContentLayerClient*); 25 WEBKIT_COMPOSITOR_BINDINGS_EXPORT explicit WebContentLayerImpl(
26 WebContentLayerClient*);
25 27
26 // WebContentLayer implementation. 28 // WebContentLayer implementation.
27 virtual WebLayer* layer() OVERRIDE; 29 virtual WebLayer* layer() OVERRIDE;
28 virtual void setDoubleSided(bool) OVERRIDE; 30 virtual void setDoubleSided(bool) OVERRIDE;
29 virtual void setBoundsContainPageScale(bool) OVERRIDE; 31 virtual void setBoundsContainPageScale(bool) OVERRIDE;
30 virtual bool boundsContainPageScale() const OVERRIDE; 32 virtual bool boundsContainPageScale() const OVERRIDE;
31 virtual void setUseLCDText(bool) OVERRIDE; 33 virtual void setUseLCDText(bool) OVERRIDE;
32 virtual void setDrawCheckerboardForMissingTiles(bool) OVERRIDE; 34 virtual void setDrawCheckerboardForMissingTiles(bool) OVERRIDE;
33 virtual void setAutomaticallyComputeRasterScale(bool); 35 virtual void setAutomaticallyComputeRasterScale(bool);
34 36
35 protected: 37 protected:
36 virtual ~WebContentLayerImpl(); 38 virtual ~WebContentLayerImpl();
37 39
38 // ContentLayerClient implementation. 40 // ContentLayerClient implementation.
39 virtual void paintContents(SkCanvas*, const gfx::Rect& clip, gfx::RectF& opa que) OVERRIDE; 41 virtual void paintContents(SkCanvas*, const gfx::Rect& clip, gfx::RectF& opa que) OVERRIDE;
40 42
41 scoped_ptr<WebLayerImpl> m_layer; 43 scoped_ptr<WebLayerImpl> m_layer;
42 WebContentLayerClient* m_client; 44 WebContentLayerClient* m_client;
43 bool m_drawsContent; 45 bool m_drawsContent;
44 }; 46 };
45 47
46 } // namespace WebKit 48 } // namespace WebKit
47 49
48 #endif // WebContentLayerImpl_h 50 #endif // WebContentLayerImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698