| 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 <public/WebSolidColorLayer.h> |
| 9 #include <wtf/OwnPtr.h> | 9 #include <wtf/OwnPtr.h> |
| 10 #include <wtf/PassRefPtr.h> | |
| 11 | |
| 12 namespace WebCore { | |
| 13 class SolidColorLayerChromium; | |
| 14 } | |
| 15 | 10 |
| 16 namespace WebKit { | 11 namespace WebKit { |
| 17 class WebLayerImpl; | 12 class WebLayerImpl; |
| 18 | 13 |
| 19 class WebSolidColorLayerImpl : public WebSolidColorLayer { | 14 class WebSolidColorLayerImpl : public WebSolidColorLayer { |
| 20 public: | 15 public: |
| 21 explicit WebSolidColorLayerImpl(PassRefPtr<WebCore::SolidColorLayerChromium>
); | 16 WebSolidColorLayerImpl(); |
| 22 virtual ~WebSolidColorLayerImpl(); | 17 virtual ~WebSolidColorLayerImpl(); |
| 23 | 18 |
| 24 // WebSolidColorLayer implementation. | 19 // WebSolidColorLayer implementation. |
| 25 virtual WebLayer* layer() OVERRIDE; | 20 virtual WebLayer* layer() OVERRIDE; |
| 26 virtual void setBackgroundColor(WebColor) OVERRIDE; | 21 virtual void setBackgroundColor(WebColor) OVERRIDE; |
| 27 | 22 |
| 28 private: | 23 private: |
| 29 OwnPtr<WebLayerImpl> m_layer; | 24 OwnPtr<WebLayerImpl> m_layer; |
| 30 }; | 25 }; |
| 31 | 26 |
| 32 } // namespace WebKit | 27 } // namespace WebKit |
| 33 | 28 |
| 34 #endif // WebSolidColorLayerImpl_h | 29 #endif // WebSolidColorLayerImpl_h |
| 35 | 30 |
| OLD | NEW |