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 WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_CONTENT_LAYER_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_COMPOSITOR_BINDINGS_WEB_CONTENT_LAYER_IMPL_H_ |
6 #define WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_CONTENT_LAYER_IMPL_H_ | 6 #define CONTENT_RENDERER_COMPOSITOR_BINDINGS_WEB_CONTENT_LAYER_IMPL_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "cc/layers/content_layer_client.h" | 9 #include "cc/layers/content_layer_client.h" |
| 10 #include "content/common/content_export.h" |
| 11 #include "content/renderer/compositor_bindings/web_layer_impl.h" |
10 #include "third_party/WebKit/public/platform/WebContentLayer.h" | 12 #include "third_party/WebKit/public/platform/WebContentLayer.h" |
11 #include "webkit/renderer/compositor_bindings/web_layer_impl.h" | |
12 #include "webkit/renderer/compositor_bindings/webkit_compositor_bindings_export.
h" | |
13 | 13 |
14 namespace cc { | 14 namespace cc { |
15 class IntRect; | 15 class IntRect; |
16 class FloatRect; | 16 class FloatRect; |
17 } | 17 } |
18 | 18 |
19 namespace blink { class WebContentLayerClient; } | 19 namespace blink { |
| 20 class WebContentLayerClient; |
| 21 } |
20 | 22 |
21 namespace webkit { | 23 namespace content { |
22 | 24 |
23 class WebContentLayerImpl : public blink::WebContentLayer, | 25 class WebContentLayerImpl : public blink::WebContentLayer, |
24 public cc::ContentLayerClient { | 26 public cc::ContentLayerClient { |
25 public: | 27 public: |
26 WEBKIT_COMPOSITOR_BINDINGS_EXPORT explicit WebContentLayerImpl( | 28 CONTENT_EXPORT explicit WebContentLayerImpl( |
27 blink::WebContentLayerClient*); | 29 blink::WebContentLayerClient*); |
28 | 30 |
29 // WebContentLayer implementation. | 31 // WebContentLayer implementation. |
30 virtual blink::WebLayer* layer(); | 32 virtual blink::WebLayer* layer(); |
31 virtual void setDoubleSided(bool double_sided); | 33 virtual void setDoubleSided(bool double_sided); |
32 virtual void setDrawCheckerboardForMissingTiles(bool checkerboard); | 34 virtual void setDrawCheckerboardForMissingTiles(bool checkerboard); |
33 | 35 |
34 protected: | 36 protected: |
35 virtual ~WebContentLayerImpl(); | 37 virtual ~WebContentLayerImpl(); |
36 | 38 |
(...skipping 10 matching lines...) Expand all Loading... |
47 blink::WebContentLayerClient* client_; | 49 blink::WebContentLayerClient* client_; |
48 bool draws_content_; | 50 bool draws_content_; |
49 | 51 |
50 private: | 52 private: |
51 bool can_use_lcd_text_; | 53 bool can_use_lcd_text_; |
52 bool ignore_lcd_text_change_; | 54 bool ignore_lcd_text_change_; |
53 | 55 |
54 DISALLOW_COPY_AND_ASSIGN(WebContentLayerImpl); | 56 DISALLOW_COPY_AND_ASSIGN(WebContentLayerImpl); |
55 }; | 57 }; |
56 | 58 |
57 } // namespace webkit | 59 } // namespace content |
58 | 60 |
59 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_CONTENT_LAYER_IMPL_H_ | 61 #endif // CONTENT_RENDERER_COMPOSITOR_BINDINGS_WEB_CONTENT_LAYER_IMPL_H_ |
| 62 |
OLD | NEW |