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

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

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/browser_window_gtk.cc ('k') | 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 07caea5a5a6c7a13bf64c3a76201358b48586599..7a0e8a4470ed630d51a5ed36701a1a5013fb90e5 100644
--- a/chrome/browser/ui/gtk/find_bar_gtk.cc
+++ b/chrome/browser/ui/gtk/find_bar_gtk.cc
@@ -43,6 +43,7 @@
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/image/cairo_cached_surface.h"
+#include "ui/gfx/image/image.h"
namespace {
@@ -901,8 +902,9 @@ gboolean FindBarGtk::OnExpose(GtkWidget* widget, GdkEventExpose* e,
cairo_fill(cr);
// Blit the center part of the background image in all the space between.
- gfx::CairoCachedSurface* background = bar->theme_service_->GetSurfaceNamed(
- IDR_FIND_BOX_BACKGROUND, widget);
+ ResourceBundle& rb = ResourceBundle::GetSharedInstance();
+ gfx::CairoCachedSurface* background =
+ rb.GetNativeImageNamed(IDR_FIND_BOX_BACKGROUND).ToCairo();
background->SetSource(cr, widget,
border_allocation.x + background_left->Width(),
border_allocation.y);
« no previous file with comments | « chrome/browser/ui/gtk/browser_window_gtk.cc ('k') | chrome/browser/ui/gtk/gtk_theme_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698