diff options
author | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-13 23:36:34 +0000 |
---|---|---|
committer | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-13 23:36:34 +0000 |
commit | ba7a68dfbf6f30e5b3efc3f5034499a952463d96 (patch) | |
tree | a90622682db23e4983778a96512995378f5ca284 /app | |
parent | 4a560eddc550fbe5761aceb1461ff91e9097a3d3 (diff) | |
download | chromium_src-ba7a68dfbf6f30e5b3efc3f5034499a952463d96.zip chromium_src-ba7a68dfbf6f30e5b3efc3f5034499a952463d96.tar.gz chromium_src-ba7a68dfbf6f30e5b3efc3f5034499a952463d96.tar.bz2 |
Restore RTL icons to CustomDrawButtonBase.
Since moving from ResourceBundle to ThemeProvider, we needed to
plumb through GetRTLEnabledPixbufNamed in ThemeProvider.
Review URL: http://codereview.chromium.org/149483
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20568 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app')
-rw-r--r-- | app/resource_bundle.h | 3 | ||||
-rw-r--r-- | app/theme_provider.h | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/app/resource_bundle.h b/app/resource_bundle.h index c718b9a..8d0b29a 100644 --- a/app/resource_bundle.h +++ b/app/resource_bundle.h @@ -124,8 +124,7 @@ class ResourceBundle { // 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(). + // As above, but flips it in RTL locales. GdkPixbuf* GetRTLEnabledPixbufNamed(int resource_id); private: diff --git a/app/theme_provider.h b/app/theme_provider.h index b004f3b..5dddd99 100644 --- a/app/theme_provider.h +++ b/app/theme_provider.h @@ -64,6 +64,9 @@ class ThemeProvider { // pointer to a shared empty placeholder bitmap so it will be visible what // is missing. virtual GdkPixbuf* GetPixbufNamed(int id) = 0; + + // As above, but flips it in RTL locales. + virtual GdkPixbuf* GetRTLEnabledPixbufNamed(int id) = 0; #elif defined(OS_MACOSX) // Gets the NSImage with the specified |id|. // |