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 WEBKIT_COMPOSITOR_BINDINGS_WEB_NINE_PATCH_LAYER_IMPL_H_ |
6 #define WebNinePatchLayerImpl_h | 6 #define WEBKIT_COMPOSITOR_BINDINGS_WEB_NINE_PATCH_LAYER_IMPL_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "third_party/skia/include/core/SkBitmap.h" | 9 #include "third_party/skia/include/core/SkBitmap.h" |
10 #include "webkit/compositor_bindings/web_layer_impl.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 WebKit::WebLayer* layer(); |
22 | 22 |
23 void setBitmap(const SkBitmap& bitmap, const WebRect& aperture); | 23 void setBitmap(const SkBitmap& bitmap, const WebKit::WebRect& aperture); |
enne (OOO)
2013/03/18 06:14:03
SetBitmap
jamesr
2013/03/18 06:36:16
WebNinePatchLayerImpl doesn't appear to be used an
| |
24 | 24 |
25 private: | 25 private: |
26 scoped_ptr<WebLayerImpl> layer_; | 26 scoped_ptr<WebLayerImpl> layer_; |
27 }; | 27 }; |
28 | 28 |
29 } // namespace WebKit | 29 } // namespace webkit |
30 | 30 |
31 #endif | 31 #endif // WEBKIT_COMPOSITOR_BINDINGS_WEB_NINE_PATCH_LAYER_IMPL_H_ |
OLD | NEW |