OLD | NEW |
| (Empty) |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_SOLID_COLOR_LAYER_IMPL_H_ | |
6 #define WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_SOLID_COLOR_LAYER_IMPL_H_ | |
7 | |
8 #include "base/memory/scoped_ptr.h" | |
9 #include "third_party/WebKit/public/platform/WebColor.h" | |
10 #include "third_party/WebKit/public/platform/WebSolidColorLayer.h" | |
11 #include "webkit/renderer/compositor_bindings/webkit_compositor_bindings_export.
h" | |
12 | |
13 namespace webkit { | |
14 class WebLayerImpl; | |
15 | |
16 class WebSolidColorLayerImpl : public blink::WebSolidColorLayer { | |
17 public: | |
18 WEBKIT_COMPOSITOR_BINDINGS_EXPORT WebSolidColorLayerImpl(); | |
19 virtual ~WebSolidColorLayerImpl(); | |
20 | |
21 // blink::WebSolidColorLayer implementation. | |
22 virtual blink::WebLayer* layer(); | |
23 virtual void setBackgroundColor(blink::WebColor); | |
24 | |
25 private: | |
26 scoped_ptr<WebLayerImpl> layer_; | |
27 | |
28 DISALLOW_COPY_AND_ASSIGN(WebSolidColorLayerImpl); | |
29 }; | |
30 | |
31 } // namespace webkit | |
32 | |
33 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_SOLID_COLOR_LAYER_IMPL_H_ | |
34 | |
OLD | NEW |