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 WebImageLayerImpl_h | 5 #ifndef WebImageLayerImpl_h |
6 #define WebImageLayerImpl_h | 6 #define WebImageLayerImpl_h |
7 | 7 |
8 #include <public/WebImageLayer.h> | 8 #include <public/WebImageLayer.h> |
9 #include <wtf/OwnPtr.h> | 9 #include <wtf/OwnPtr.h> |
10 | 10 |
11 namespace WebCore { | |
12 class ImageLayerChromium; | |
13 } | |
14 | |
15 namespace WebKit { | 11 namespace WebKit { |
16 class WebLayerImpl; | 12 class WebLayerImpl; |
17 | 13 |
18 class WebImageLayerImpl : public WebImageLayer { | 14 class WebImageLayerImpl : public WebImageLayer { |
19 public: | 15 public: |
20 WebImageLayerImpl(); | 16 WebImageLayerImpl(); |
21 virtual ~WebImageLayerImpl(); | 17 virtual ~WebImageLayerImpl(); |
22 | 18 |
23 // WebImageLayer implementation. | 19 // WebImageLayer implementation. |
24 WebLayer* layer() OVERRIDE; | 20 WebLayer* layer() OVERRIDE; |
25 virtual void setBitmap(SkBitmap) OVERRIDE; | 21 virtual void setBitmap(SkBitmap) OVERRIDE; |
26 | 22 |
27 private: | 23 private: |
28 OwnPtr<WebLayerImpl> m_layer; | 24 OwnPtr<WebLayerImpl> m_layer; |
29 }; | 25 }; |
30 | 26 |
31 } | 27 } |
32 | 28 |
33 #endif // WebImageLayerImpl_h | 29 #endif // WebImageLayerImpl_h |
OLD | NEW |