| 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 WebVideoLayerImpl_h | 5 #ifndef WebVideoLayerImpl_h |
| 6 #define WebVideoLayerImpl_h | 6 #define WebVideoLayerImpl_h |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebVideoLayer.h" | 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebVideoLayer.h" |
| 10 #include "webkit/compositor_bindings/webkit_compositor_bindings_export.h" |
| 10 | 11 |
| 11 namespace WebKit { | 12 namespace WebKit { |
| 12 class WebLayerImpl; | 13 class WebLayerImpl; |
| 13 | 14 |
| 14 class WebVideoLayerImpl : public WebVideoLayer { | 15 class WebVideoLayerImpl : public WebVideoLayer { |
| 15 public: | 16 public: |
| 16 explicit WebVideoLayerImpl(WebVideoFrameProvider*); | 17 WEBKIT_COMPOSITOR_BINDINGS_EXPORT explicit WebVideoLayerImpl( |
| 18 WebVideoFrameProvider*); |
| 17 virtual ~WebVideoLayerImpl(); | 19 virtual ~WebVideoLayerImpl(); |
| 18 | 20 |
| 19 // WebVideoLayer implementation. | 21 // WebVideoLayer implementation. |
| 20 virtual WebLayer* layer() OVERRIDE; | 22 virtual WebLayer* layer() OVERRIDE; |
| 21 virtual bool active() const OVERRIDE; | 23 virtual bool active() const OVERRIDE; |
| 22 | 24 |
| 23 private: | 25 private: |
| 24 scoped_ptr<WebLayerImpl> m_layer; | 26 scoped_ptr<WebLayerImpl> m_layer; |
| 25 }; | 27 }; |
| 26 | 28 |
| 27 } | 29 } |
| 28 | 30 |
| 29 #endif // WebVideoLayerImpl_h | 31 #endif // WebVideoLayerImpl_h |
| OLD | NEW |