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

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

Issue 8789016: Revert 112839 (it probably caused http://crbug.com/106299 ) - GTK: Port omnibox drawing from GdkG... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
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/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
===================================================================
--- chrome/browser/ui/gtk/omnibox/omnibox_popup_view_gtk.h (revision 112901)
+++ chrome/browser/ui/gtk/omnibox/omnibox_popup_view_gtk.h (working copy)
@@ -28,10 +28,6 @@
class OmniboxView;
class SkBitmap;
-namespace gfx {
-class Image;
-}
-
class OmniboxPopupViewGtk : public AutocompletePopupView,
public content::NotificationObserver {
public:
@@ -79,7 +75,7 @@
// Accept a line of the results, for example, when the user clicks a line.
void AcceptLine(size_t line, WindowOpenDisposition disposition);
- const gfx::Image* IconForMatch(const AutocompleteMatch& match, bool selected);
+ GdkPixbuf* IconForMatch(const AutocompleteMatch& match, bool selected);
CHROMEGTK_CALLBACK_1(OmniboxPopupViewGtk, gboolean, HandleMotion,
GdkEventMotion*);
@@ -112,8 +108,8 @@
// Used to cache GdkPixbufs and map them from the SkBitmaps they were created
// from.
- typedef std::map<const SkBitmap*, gfx::Image*> ImageMap;
- ImageMap images_;
+ typedef std::map<const SkBitmap*, GdkPixbuf*> PixbufMap;
+ PixbufMap pixbufs_;
// 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