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

Unified Diff: chrome/browser/ui/gtk/gtk_theme_service.cc

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.h ('k') | ui/base/resource/resource_bundle.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/gtk_theme_service.cc
diff --git a/chrome/browser/ui/gtk/gtk_theme_service.cc b/chrome/browser/ui/gtk/gtk_theme_service.cc
index 1597a65f3e9710023f67bc6ca1f0e61ffde2ae07..190d461cad69a24e08ca1e4212c7ff5d008afbb7 100644
--- a/chrome/browser/ui/gtk/gtk_theme_service.cc
+++ b/chrome/browser/ui/gtk/gtk_theme_service.cc
@@ -570,21 +570,6 @@ void GtkThemeService::GetScrollbarColors(GdkColor* thumb_active_color,
*track_color = *theme_trough_color;
}
-gfx::CairoCachedSurface* GtkThemeService::GetRTLEnabledSurfaceNamed(
- int id,
- GtkWidget* widget_on_display) {
- // We flip the sign of |id| when passing it to GetSurfaceNamedImpl() for the
- // same reason that ThemeService::GetPixbufImpl() does: so that if one
- // location calls this function with a resource ID, and another place calls
- // GetSurfaceNamed() with the same ID, they'll correctly get different
- // surfaces in RTL mode.
- return GetSurfaceNamedImpl(
- -id,
- &per_display_surfaces_,
- &GtkThemeService::GetRTLEnabledPixbufNamedWrapper,
- widget_on_display);
-}
-
gfx::CairoCachedSurface* GtkThemeService::GetCairoIcon(
int id,
GtkWidget* widget_on_display) {
« no previous file with comments | « chrome/browser/ui/gtk/gtk_theme_service.h ('k') | ui/base/resource/resource_bundle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698