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

Unified Diff: chrome/browser/ui/gtk/omnibox/omnibox_popup_view_gtk.h

Issue 8781001: GTK: Port omnibox drawing from GdkGC interface to cairo. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added comment for thakis 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/themes/theme_service.cc ('k') | chrome/browser/ui/gtk/omnibox/omnibox_popup_view_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/omnibox/omnibox_popup_view_gtk.h
diff --git a/chrome/browser/ui/gtk/omnibox/omnibox_popup_view_gtk.h b/chrome/browser/ui/gtk/omnibox/omnibox_popup_view_gtk.h
index fc5f0cbe8c9572165bccb42da3e5777734b5bca4..f8d137bd8a710255e57a7ee382da5505516c84bc 100644
--- a/chrome/browser/ui/gtk/omnibox/omnibox_popup_view_gtk.h
+++ b/chrome/browser/ui/gtk/omnibox/omnibox_popup_view_gtk.h
@@ -28,6 +28,10 @@ class GtkThemeService;
class OmniboxView;
class SkBitmap;
+namespace gfx {
+class Image;
+}
+
class OmniboxPopupViewGtk : public AutocompletePopupView,
public content::NotificationObserver {
public:
@@ -75,7 +79,7 @@ class OmniboxPopupViewGtk : public AutocompletePopupView,
// Accept a line of the results, for example, when the user clicks a line.
void AcceptLine(size_t line, WindowOpenDisposition disposition);
- GdkPixbuf* IconForMatch(const AutocompleteMatch& match, bool selected);
+ const gfx::Image* IconForMatch(const AutocompleteMatch& match, bool selected);
CHROMEGTK_CALLBACK_1(OmniboxPopupViewGtk, gboolean, HandleMotion,
GdkEventMotion*);
@@ -108,8 +112,8 @@ class OmniboxPopupViewGtk : public AutocompletePopupView,
// Used to cache GdkPixbufs and map them from the SkBitmaps they were created
// from.
- typedef std::map<const SkBitmap*, GdkPixbuf*> PixbufMap;
- PixbufMap pixbufs_;
+ typedef std::map<const SkBitmap*, gfx::Image*> ImageMap;
+ ImageMap images_;
// A list of colors which we should use for drawing the popup. These change
// between gtk and normal mode.
« no previous file with comments | « chrome/browser/themes/theme_service.cc ('k') | chrome/browser/ui/gtk/omnibox/omnibox_popup_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698