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