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

Unified Diff: chrome/browser/ui/views/omnibox/omnibox_result_view_model.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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/omnibox/omnibox_result_view_model.h
diff --git a/chrome/browser/ui/views/omnibox/omnibox_result_view_model.h b/chrome/browser/ui/views/omnibox/omnibox_result_view_model.h
index 630945c678ffdeb36279bfab5eb7ff80eed822bf..0a1db3dd0b60895c4b4b361a4b342df5ba83f10d 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_result_view_model.h
+++ b/chrome/browser/ui/views/omnibox/omnibox_result_view_model.h
@@ -5,7 +5,9 @@
#ifndef CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_RESULT_VIEW_MODEL_H_
#define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_RESULT_VIEW_MODEL_H_
-class SkBitmap;
+namespace gfx {
+class Image;
+}
// An interface implemented by an object that provides data to populate
// individual result views.
@@ -18,8 +20,8 @@ class OmniboxResultViewModel {
virtual bool IsHoveredIndex(size_t index) const = 0;
// If |index| is a match from an extension, returns the extension icon;
- // otherwise returns NULL.
- virtual const SkBitmap* GetIconIfExtensionMatch(size_t index) const = 0;
+ // otherwise returns an empty gfx::Image.
+ virtual gfx::Image GetIconIfExtensionMatch(size_t index) const = 0;
};
#endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_RESULT_VIEW_MODEL_H_

Powered by Google App Engine
This is Rietveld 408576698