summaryrefslogtreecommitdiffstats
path: root/app/resource_bundle.h
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-25 23:48:44 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-25 23:48:44 +0000
commitcd43e6e776b2283f555f1b59bef06d135504f66f (patch)
tree1d1a074deebfef562a534f79bd0128ed2aa48ba1 /app/resource_bundle.h
parent05d94e79f64a6562ea646e5b3f2e9c6e7b1cc011 (diff)
downloadchromium_src-cd43e6e776b2283f555f1b59bef06d135504f66f.zip
chromium_src-cd43e6e776b2283f555f1b59bef06d135504f66f.tar.gz
chromium_src-cd43e6e776b2283f555f1b59bef06d135504f66f.tar.bz2
Add a function to ResourceBundle to allow loading images that will mirror in RTL. Use this function for custom buttons and for the Off the Record avatar.
for reference, this will be a bit different than Views, which does it per class rather than per image: http://dev.chromium.org/developers/design-documents/ui-mirroring-infrastructure Review URL: http://codereview.chromium.org/147157 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19309 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/resource_bundle.h')
-rw-r--r--app/resource_bundle.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/resource_bundle.h b/app/resource_bundle.h
index ed17616..c718b9a 100644
--- a/app/resource_bundle.h
+++ b/app/resource_bundle.h
@@ -123,6 +123,16 @@ class ResourceBundle {
// pointer to a shared empty placeholder bitmap so it will be visible what
// is missing.
GdkPixbuf* GetPixbufNamed(int resource_id);
+
+ // As above, but flips it in RTL locales. Note that this will add the flipped
+ // pixbuf to the same cache used by GetPixbufNamed().
+ GdkPixbuf* GetRTLEnabledPixbufNamed(int resource_id);
+
+ private:
+ // Shared implementation for the above two functions.
+ GdkPixbuf* GetPixbufImpl(int resource_id, bool rtl_enabled);
+
+ public:
#endif
// TODO(glen): Move these into theme provider (dialogs still depend on