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_IMPL_H_ | 5 #ifndef CC_LAYERS_NINE_PATCH_LAYER_IMPL_H_ |
6 #define CC_LAYERS_NINE_PATCH_LAYER_IMPL_H_ | 6 #define CC_LAYERS_NINE_PATCH_LAYER_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
11 #include "cc/layers/layer_impl.h" | 11 #include "cc/layers/layer_impl.h" |
12 #include "cc/layers/ui_resource_layer_impl.h" | 12 #include "cc/layers/ui_resource_layer_impl.h" |
13 #include "cc/resources/resource_provider.h" | 13 #include "cc/resources/resource_provider.h" |
14 #include "cc/resources/ui_resource_client.h" | 14 #include "cc/resources/ui_resource_client.h" |
15 #include "ui/gfx/rect.h" | 15 #include "ui/gfx/geometry/rect.h" |
16 #include "ui/gfx/size.h" | 16 #include "ui/gfx/geometry/size.h" |
17 | 17 |
18 namespace base { | 18 namespace base { |
19 class DictionaryValue; | 19 class DictionaryValue; |
20 } | 20 } |
21 | 21 |
22 namespace cc { | 22 namespace cc { |
23 | 23 |
24 class CC_EXPORT NinePatchLayerImpl : public UIResourceLayerImpl { | 24 class CC_EXPORT NinePatchLayerImpl : public UIResourceLayerImpl { |
25 public: | 25 public: |
26 static scoped_ptr<NinePatchLayerImpl> Create(LayerTreeImpl* tree_impl, | 26 static scoped_ptr<NinePatchLayerImpl> Create(LayerTreeImpl* tree_impl, |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 gfx::Rect border_; | 82 gfx::Rect border_; |
83 | 83 |
84 bool fill_center_; | 84 bool fill_center_; |
85 | 85 |
86 DISALLOW_COPY_AND_ASSIGN(NinePatchLayerImpl); | 86 DISALLOW_COPY_AND_ASSIGN(NinePatchLayerImpl); |
87 }; | 87 }; |
88 | 88 |
89 } // namespace cc | 89 } // namespace cc |
90 | 90 |
91 #endif // CC_LAYERS_NINE_PATCH_LAYER_IMPL_H_ | 91 #endif // CC_LAYERS_NINE_PATCH_LAYER_IMPL_H_ |
OLD | NEW |