Home | History | Annotate | Download | only in compositor_bindings
      1 // Copyright 2014 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 CONTENT_RENDERER_COMPOSITOR_BINDINGS_WEB_SOLID_COLOR_LAYER_IMPL_H_
      6 #define CONTENT_RENDERER_COMPOSITOR_BINDINGS_WEB_SOLID_COLOR_LAYER_IMPL_H_
      7 
      8 #include "base/memory/scoped_ptr.h"
      9 #include "content/common/content_export.h"
     10 #include "third_party/WebKit/public/platform/WebColor.h"
     11 #include "third_party/WebKit/public/platform/WebSolidColorLayer.h"
     12 
     13 namespace content {
     14 class WebLayerImpl;
     15 
     16 class WebSolidColorLayerImpl : public blink::WebSolidColorLayer {
     17  public:
     18   CONTENT_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 content
     32 
     33 #endif  // CONTENT_RENDERER_COMPOSITOR_BINDINGS_WEB_SOLID_COLOR_LAYER_IMPL_H_
     34 
     35