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

Unified Diff: chrome/browser/ui/gtk/find_bar_gtk.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 | « no previous file | chrome/browser/ui/gtk/gtk_theme_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/find_bar_gtk.cc
diff --git a/chrome/browser/ui/gtk/find_bar_gtk.cc b/chrome/browser/ui/gtk/find_bar_gtk.cc
index 0f33b79caa40f941b1b392a9d434fddc2ecb01ef..ccaa78de38df49fa7345a96fd23c7494fa9c1ff6 100644
--- a/chrome/browser/ui/gtk/find_bar_gtk.cc
+++ b/chrome/browser/ui/gtk/find_bar_gtk.cc
@@ -901,9 +901,9 @@ gboolean FindBarGtk::OnExpose(GtkWidget* widget, GdkEventExpose* e,
GtkAllocation border_allocation = bar->border_bin_->allocation;
// Blit the left part of the background image once on the left.
+ ResourceBundle& rb = ResourceBundle::GetSharedInstance();
gfx::CairoCachedSurface* background_left =
- bar->theme_service_->GetRTLEnabledSurfaceNamed(
- IDR_FIND_BOX_BACKGROUND_LEFT, widget);
+ rb.GetRTLEnabledImageNamed(IDR_FIND_BOX_BACKGROUND_LEFT).ToCairo();
background_left->SetSource(cr, widget,
border_allocation.x, border_allocation.y);
cairo_pattern_set_extend(cairo_get_source(cr), CAIRO_EXTEND_REPEAT);
@@ -912,7 +912,6 @@ gboolean FindBarGtk::OnExpose(GtkWidget* widget, GdkEventExpose* e,
cairo_fill(cr);
// Blit the center part of the background image in all the space between.
- ResourceBundle& rb = ResourceBundle::GetSharedInstance();
gfx::CairoCachedSurface* background =
rb.GetNativeImageNamed(IDR_FIND_BOX_BACKGROUND).ToCairo();
background->SetSource(cr, widget,
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/gtk_theme_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698