| Index: ui/android/resources/resource_manager.h
|
| diff --git a/ui/android/resources/resource_manager.h b/ui/android/resources/resource_manager.h
|
| index 5161ace541078aafd1966424fdc19077a0fc30dd..64487d596caa226001646d908f04a18b2004cad9 100644
|
| --- a/ui/android/resources/resource_manager.h
|
| +++ b/ui/android/resources/resource_manager.h
|
| @@ -48,6 +48,8 @@ class UI_ANDROID_EXPORT ResourceManager {
|
| gfx::Size size;
|
| gfx::Rect padding;
|
| gfx::Rect aperture;
|
| + // The tint of the resource if applicable, 0 if no tint.
|
| + int tint;
|
| };
|
|
|
| // Obtain a handle to the Java ResourceManager counterpart.
|
| @@ -60,6 +62,12 @@ class UI_ANDROID_EXPORT ResourceManager {
|
| // to react appropriately.
|
| virtual Resource* GetResource(AndroidResourceType res_type, int res_id) = 0;
|
|
|
| + // Return a handle to a static resource specified by |res_id| that has a tint
|
| + // of |tint_color| applied to it. |default_color| is used if the cache becomes
|
| + // too large.
|
| + virtual Resource* GetStaticResourceWithTint(
|
| + int res_id, int tint_color, int default_color) = 0;
|
| +
|
| // Trigger asynchronous loading of the resource specified by |res_type| and
|
| // |res_id|, if it has not yet been loaded.
|
| virtual void PreloadResource(AndroidResourceType res_type, int res_id) = 0;
|
|
|