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 CC_LAYERS_NINE_PATCH_LAYER_H_ | 5 #ifndef CC_LAYERS_NINE_PATCH_LAYER_H_ |
6 #define CC_LAYERS_NINE_PATCH_LAYER_H_ | 6 #define CC_LAYERS_NINE_PATCH_LAYER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "cc/base/cc_export.h" | 11 #include "cc/cc_export.h" |
12 #include "cc/layers/layer.h" | 12 #include "cc/layers/layer.h" |
13 #include "cc/layers/ui_resource_layer.h" | 13 #include "cc/layers/ui_resource_layer.h" |
14 #include "cc/resources/ui_resource_client.h" | 14 #include "cc/resources/ui_resource_client.h" |
15 #include "ui/gfx/geometry/rect.h" | 15 #include "ui/gfx/geometry/rect.h" |
16 | 16 |
17 namespace cc { | 17 namespace cc { |
18 | 18 |
19 class CC_EXPORT NinePatchLayer : public UIResourceLayer { | 19 class CC_EXPORT NinePatchLayer : public UIResourceLayer { |
20 public: | 20 public: |
21 static scoped_refptr<NinePatchLayer> Create(); | 21 static scoped_refptr<NinePatchLayer> Create(); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 // The occluded region in layer space set by SetLayerOcclusion. It is | 60 // The occluded region in layer space set by SetLayerOcclusion. It is |
61 // usually larger than |image_aperture_|. | 61 // usually larger than |image_aperture_|. |
62 gfx::Rect layer_occlusion_; | 62 gfx::Rect layer_occlusion_; |
63 | 63 |
64 DISALLOW_COPY_AND_ASSIGN(NinePatchLayer); | 64 DISALLOW_COPY_AND_ASSIGN(NinePatchLayer); |
65 }; | 65 }; |
66 | 66 |
67 } // namespace cc | 67 } // namespace cc |
68 | 68 |
69 #endif // CC_LAYERS_NINE_PATCH_LAYER_H_ | 69 #endif // CC_LAYERS_NINE_PATCH_LAYER_H_ |
OLD | NEW |