| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 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 | 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 WebSolidColorLayerImpl_h | 5 #ifndef WebSolidColorLayerImpl_h |
| 6 #define WebSolidColorLayerImpl_h | 6 #define WebSolidColorLayerImpl_h |
| 7 | 7 |
| 8 #include <public/WebSolidColorLayer.h> | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include <wtf/OwnPtr.h> | 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebSolidColorLayer.
h" |
| 10 | 10 |
| 11 namespace WebKit { | 11 namespace WebKit { |
| 12 class WebLayerImpl; | 12 class WebLayerImpl; |
| 13 | 13 |
| 14 class WebSolidColorLayerImpl : public WebSolidColorLayer { | 14 class WebSolidColorLayerImpl : public WebSolidColorLayer { |
| 15 public: | 15 public: |
| 16 WebSolidColorLayerImpl(); | 16 WebSolidColorLayerImpl(); |
| 17 virtual ~WebSolidColorLayerImpl(); | 17 virtual ~WebSolidColorLayerImpl(); |
| 18 | 18 |
| 19 // WebSolidColorLayer implementation. | 19 // WebSolidColorLayer implementation. |
| 20 virtual WebLayer* layer() OVERRIDE; | 20 virtual WebLayer* layer() OVERRIDE; |
| 21 virtual void setBackgroundColor(WebColor) OVERRIDE; | 21 virtual void setBackgroundColor(WebColor) OVERRIDE; |
| 22 | 22 |
| 23 private: | 23 private: |
| 24 OwnPtr<WebLayerImpl> m_layer; | 24 scoped_ptr<WebLayerImpl> m_layer; |
| 25 }; | 25 }; |
| 26 | 26 |
| 27 } // namespace WebKit | 27 } // namespace WebKit |
| 28 | 28 |
| 29 #endif // WebSolidColorLayerImpl_h | 29 #endif // WebSolidColorLayerImpl_h |
| 30 | 30 |
| OLD | NEW |