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

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

Issue 10396003: Add Icon Support for New Autofill Gtk UI (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 7 months 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/autofill/autofill_popup_view_gtk.cc ('k') | chrome/browser/ui/gtk/gtk_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/gtk_util.h
diff --git a/chrome/browser/ui/gtk/gtk_util.h b/chrome/browser/ui/gtk/gtk_util.h
index 317c5c2918bd7223fd04bcf8039b0e4b89eec027..c37d990ae7779ed5d8f8aa5daae63f6e1e4d8672 100644
--- a/chrome/browser/ui/gtk/gtk_util.h
+++ b/chrome/browser/ui/gtk/gtk_util.h
@@ -29,6 +29,10 @@ namespace content {
struct RendererPreferences;
}
+namespace gfx {
+class Image;
+}
+
namespace event_utils {
// Translates GdkEvent state into what kind of disposition they represent.
@@ -223,6 +227,13 @@ void DrawThemedToolbarBackground(GtkWidget* widget,
const gfx::Point& tabstrip_origin,
GtkThemeService* provider);
+// Draw an entire pixbuf without dithering.
+void DrawFullImage(cairo_t* cr,
+ GtkWidget* widget,
+ const gfx::Image* image,
+ gint dest_x,
+ gint dest_y);
+
// Returns the two colors averaged together.
GdkColor AverageColors(GdkColor color_one, GdkColor color_two);
« no previous file with comments | « chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc ('k') | chrome/browser/ui/gtk/gtk_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698