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

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

Issue 8866002: GTK: Stamp out GtkThemeService::GetSurfaceNamed(). (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/find_bar_gtk.cc ('k') | chrome/browser/ui/gtk/gtk_theme_service.cc » ('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.h
diff --git a/chrome/browser/ui/gtk/gtk_theme_service.h b/chrome/browser/ui/gtk/gtk_theme_service.h
index 96538e83b4842badcd8f22d7bdac720027141443..6cf637bd6f975b02d69069c2a5d6e9bc10e5c412 100644
--- a/chrome/browser/ui/gtk/gtk_theme_service.h
+++ b/chrome/browser/ui/gtk/gtk_theme_service.h
@@ -116,24 +116,10 @@ class GtkThemeService : public ThemeService {
// Expose the inner label. Only used for testing.
GtkWidget* fake_label() { return fake_label_.get(); }
- // Returns a CairoCachedSurface for a particular Display. CairoCachedSurfaces
- // (hopefully) live on the X server, instead of the client so we don't have
- // to send the image to the server on each expose.
- gfx::CairoCachedSurface* GetSurfaceNamed(
- int id, GtkWidget* widget_on_display);
-
// Same as above, but auto-mirrors the underlying pixbuf in RTL mode.
gfx::CairoCachedSurface* GetRTLEnabledSurfaceNamed(
int id, GtkWidget* widget_on_display);
- // Same as above, but gets the resource from the ResourceBundle instead of the
- // ThemeService.
- // NOTE: Never call this with resource IDs that are ever passed to the above
- // two functions! Depending on which call comes first, all callers will
- // either get the themed or the unthemed version.
- gfx::CairoCachedSurface* GetUnthemedSurfaceNamed(
- int id, GtkWidget* widget_on_display);
-
// A way to get a cached cairo surface for the equivalent of GetFolderIcon()
// or GetDefaultFavicon(). Uses the ids defined in CairoDefaultIcon.
gfx::CairoCachedSurface* GetCairoIcon(int id, GtkWidget* widget_on_display);
« no previous file with comments | « chrome/browser/ui/gtk/find_bar_gtk.cc ('k') | chrome/browser/ui/gtk/gtk_theme_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698