OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 UI_ANDROID_RESOURCES_RESOURCE_MANAGER_H_ | 5 #ifndef UI_ANDROID_RESOURCES_RESOURCE_MANAGER_H_ |
6 #define UI_ANDROID_RESOURCES_RESOURCE_MANAGER_H_ | 6 #define UI_ANDROID_RESOURCES_RESOURCE_MANAGER_H_ |
7 | 7 |
8 #include "base/android/jni_android.h" | 8 #include "base/android/jni_android.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "cc/resources/ui_resource_client.h" | 10 #include "cc/resources/ui_resource_client.h" |
11 #include "ui/android/resources/ui_resource_android.h" | 11 #include "ui/android/resources/ui_resource_android.h" |
12 #include "ui/android/ui_android_export.h" | 12 #include "ui/android/ui_android_export.h" |
| 13 #include "ui/gfx/geometry/insets_f.h" |
13 #include "ui/gfx/geometry/rect.h" | 14 #include "ui/gfx/geometry/rect.h" |
14 #include "ui/gfx/geometry/size.h" | 15 #include "ui/gfx/geometry/size.h" |
15 | 16 |
16 namespace ui { | 17 namespace ui { |
17 | 18 |
18 class UIResourceAndroid; | 19 class UIResourceAndroid; |
19 class UIResourceProvider; | 20 class UIResourceProvider; |
20 | 21 |
21 // A Java counterpart will be generated for this enum. | 22 // A Java counterpart will be generated for this enum. |
22 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.ui.resources | 23 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.ui.resources |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 return resource && resource->ui_resource ? resource->ui_resource->id() : 0; | 69 return resource && resource->ui_resource ? resource->ui_resource->id() : 0; |
69 } | 70 } |
70 | 71 |
71 protected: | 72 protected: |
72 virtual ~ResourceManager() {} | 73 virtual ~ResourceManager() {} |
73 }; | 74 }; |
74 | 75 |
75 } // namespace ui | 76 } // namespace ui |
76 | 77 |
77 #endif // UI_ANDROID_RESOURCES_RESOURCE_MANAGER_H_ | 78 #endif // UI_ANDROID_RESOURCES_RESOURCE_MANAGER_H_ |
OLD | NEW |