summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_theme_provider.h
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-13 23:36:34 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-13 23:36:34 +0000
commitba7a68dfbf6f30e5b3efc3f5034499a952463d96 (patch)
treea90622682db23e4983778a96512995378f5ca284 /chrome/browser/browser_theme_provider.h
parent4a560eddc550fbe5761aceb1461ff91e9097a3d3 (diff)
downloadchromium_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 'chrome/browser/browser_theme_provider.h')
-rw-r--r--chrome/browser/browser_theme_provider.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/browser_theme_provider.h b/chrome/browser/browser_theme_provider.h
index f91b494..6d7bb70 100644
--- a/chrome/browser/browser_theme_provider.h
+++ b/chrome/browser/browser_theme_provider.h
@@ -137,6 +137,7 @@ class BrowserThemeProvider : public base::RefCounted<BrowserThemeProvider>,
virtual bool HasCustomImage(int id);
#if defined(OS_LINUX) && !defined(TOOLKIT_VIEWS)
virtual GdkPixbuf* GetPixbufNamed(int id);
+ virtual GdkPixbuf* GetRTLEnabledPixbufNamed(int id);
#elif defined(OS_MACOSX)
virtual NSImage* GetNSImageNamed(int id);
virtual NSColor* GetNSColorTint(int id);
@@ -252,6 +253,11 @@ class BrowserThemeProvider : public base::RefCounted<BrowserThemeProvider>,
// from ClearCaches().
void FreePlatformCaches();
+#if defined(OS_LINUX) && !defined(TOOLKIT_VIEWS)
+ // Loads an image and flips it horizontally if |rtl_enabled| is true.
+ GdkPixbuf* GetPixbufImpl(int id, bool rtl_enabled);
+#endif
+
// Cached images. We cache all retrieved and generated bitmaps and keep
// track of the pointers. We own these and will delete them when we're done
// using them.