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 WebNinePatchLayerImpl_h | 5 #ifndef WebNinePatchLayerImpl_h |
6 #define WebNinePatchLayerImpl_h | 6 #define WebNinePatchLayerImpl_h |
7 | 7 |
8 #include "web_layer_impl.h" | |
9 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
10 #include "SkBitmap.h" | 9 #include "third_party/skia/include/core/SkBitmap.h" |
| 10 #include "webkit/compositor_bindings/web_layer_impl.h" |
11 | 11 |
12 namespace WebKit { | 12 namespace WebKit { |
13 | 13 |
14 class WebLayerImpl; | 14 class WebLayerImpl; |
15 | 15 |
16 class WebNinePatchLayerImpl { | 16 class WebNinePatchLayerImpl { |
17 public: | 17 public: |
18 WebNinePatchLayerImpl(); | 18 WebNinePatchLayerImpl(); |
19 virtual ~WebNinePatchLayerImpl(); | 19 virtual ~WebNinePatchLayerImpl(); |
20 | 20 |
21 WebLayer* layer(); | 21 WebLayer* layer(); |
22 | 22 |
23 void setBitmap(const SkBitmap& bitmap, const WebRect& aperture); | 23 void setBitmap(const SkBitmap& bitmap, const WebRect& aperture); |
24 | 24 |
25 private: | 25 private: |
26 scoped_ptr<WebLayerImpl> m_layer; | 26 scoped_ptr<WebLayerImpl> m_layer; |
27 }; | 27 }; |
28 | 28 |
29 } // namespace WebKit | 29 } // namespace WebKit |
30 | 30 |
31 #endif | 31 #endif |
OLD | NEW |