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

Side by Side Diff: chrome/browser/ui/gtk/gtk_util.h

Issue 10829370: Make search icon in omnibox results hidpi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_GTK_GTK_UTIL_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_GTK_UTIL_H_
6 #define CHROME_BROWSER_UI_GTK_GTK_UTIL_H_ 6 #define CHROME_BROWSER_UI_GTK_GTK_UTIL_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 // |event| and starting image tiling from |tabstrip_origin|. 200 // |event| and starting image tiling from |tabstrip_origin|.
201 void DrawThemedToolbarBackground(GtkWidget* widget, 201 void DrawThemedToolbarBackground(GtkWidget* widget,
202 cairo_t* cr, 202 cairo_t* cr,
203 GdkEventExpose* event, 203 GdkEventExpose* event,
204 const gfx::Point& tabstrip_origin, 204 const gfx::Point& tabstrip_origin,
205 GtkThemeService* provider); 205 GtkThemeService* provider);
206 206
207 // Draw an entire pixbuf without dithering. 207 // Draw an entire pixbuf without dithering.
208 void DrawFullImage(cairo_t* cr, 208 void DrawFullImage(cairo_t* cr,
209 GtkWidget* widget, 209 GtkWidget* widget,
210 const gfx::Image* image, 210 const gfx::Image& image,
211 gint dest_x, 211 gint dest_x,
212 gint dest_y); 212 gint dest_y);
213 213
214 // Returns the two colors averaged together. 214 // Returns the two colors averaged together.
215 GdkColor AverageColors(GdkColor color_one, GdkColor color_two); 215 GdkColor AverageColors(GdkColor color_one, GdkColor color_two);
216 216
217 // Show the image for the given menu item, even if the user's default is to not 217 // Show the image for the given menu item, even if the user's default is to not
218 // show images. Only to be used for favicons or other menus where the image is 218 // show images. Only to be used for favicons or other menus where the image is
219 // crucial to its functionality. 219 // crucial to its functionality.
220 void SetAlwaysShowImage(GtkWidget* image_menu_item); 220 void SetAlwaysShowImage(GtkWidget* image_menu_item);
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 void InitLabelSizeRequestAndEllipsizeMode(GtkWidget* label); 304 void InitLabelSizeRequestAndEllipsizeMode(GtkWidget* label);
305 305
306 // A helper function for gtk_message_dialog_new() to work around a few KDE 3 306 // A helper function for gtk_message_dialog_new() to work around a few KDE 3
307 // window manager bugs. You should always call it after creating a dialog with 307 // window manager bugs. You should always call it after creating a dialog with
308 // gtk_message_dialog_new. 308 // gtk_message_dialog_new.
309 void ApplyMessageDialogQuirks(GtkWidget* dialog); 309 void ApplyMessageDialogQuirks(GtkWidget* dialog);
310 310
311 } // namespace gtk_util 311 } // namespace gtk_util
312 312
313 #endif // CHROME_BROWSER_UI_GTK_GTK_UTIL_H_ 313 #endif // CHROME_BROWSER_UI_GTK_GTK_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698