Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Unified Diff: ui/base/resource/resource_bundle.h

Issue 8917026: GTK: Remove the one user of GetRTLEnabledSurfaceNamed() and move it over to ResourceBundle(). (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/gtk/gtk_theme_service.cc ('k') | ui/base/resource/resource_bundle_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/resource/resource_bundle.h
diff --git a/ui/base/resource/resource_bundle.h b/ui/base/resource/resource_bundle.h
index 84bc5d510c47097def2b7910b0ac759a11eaf3ab..52d6fe41e4ee78e40a6061da1bbaf47706b06303 100644
--- a/ui/base/resource/resource_bundle.h
+++ b/ui/base/resource/resource_bundle.h
@@ -180,6 +180,9 @@ class UI_EXPORT ResourceBundle {
// This function flips it in RTL locales.
GdkPixbuf* GetRTLEnabledPixbufNamed(int resource_id);
+ // Same as above, but returns a gfx::Image wrapping the GdkPixbuf.
+ gfx::Image& GetRTLEnabledImageNamed(int resource_id);
+
private:
// Shared implementation for the above two functions.
gfx::Image* GetPixbufImpl(int resource_id, bool rtl_enabled);
« no previous file with comments | « chrome/browser/ui/gtk/gtk_theme_service.cc ('k') | ui/base/resource/resource_bundle_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698