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 NinePatchLayerImpl_h | 5 #ifndef CC_NINE_PATCH_LAYER_IMPL_H_ |
6 #define NinePatchLayerImpl_h | 6 #define CC_NINE_PATCH_LAYER_IMPL_H_ |
7 | 7 |
8 #include "cc/cc_export.h" | 8 #include "cc/cc_export.h" |
9 #include "cc/layer_impl.h" | 9 #include "cc/layer_impl.h" |
10 #include "cc/resource_provider.h" | 10 #include "cc/resource_provider.h" |
11 #include "ui/gfx/size.h" | 11 #include "ui/gfx/size.h" |
12 #include "ui/gfx/rect.h" | 12 #include "ui/gfx/rect.h" |
13 | 13 |
14 namespace cc { | 14 namespace cc { |
15 | 15 |
16 class CC_EXPORT NinePatchLayerImpl : public LayerImpl { | 16 class CC_EXPORT NinePatchLayerImpl : public LayerImpl { |
(...skipping 22 matching lines...) Expand all Loading... |
39 | 39 |
40 // The size of the NinePatch bitmap in pixels. | 40 // The size of the NinePatch bitmap in pixels. |
41 gfx::Size m_imageBounds; | 41 gfx::Size m_imageBounds; |
42 | 42 |
43 // The transparent center region that shows the parent layer's contents in i
mage space. | 43 // The transparent center region that shows the parent layer's contents in i
mage space. |
44 gfx::Rect m_imageAperture; | 44 gfx::Rect m_imageAperture; |
45 | 45 |
46 ResourceProvider::ResourceId m_resourceId; | 46 ResourceProvider::ResourceId m_resourceId; |
47 }; | 47 }; |
48 | 48 |
49 } | 49 } // namespace cc |
50 | 50 |
51 #endif | 51 #endif // CC_NINE_PATCH_LAYER_IMPL_H_ |
OLD | NEW |