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

Unified Diff: components/omnibox/browser/omnibox_view.h

Issue 1410293003: Vectorize LocationIconView icons (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix android Created 5 years, 1 month 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: components/omnibox/browser/omnibox_view.h
diff --git a/components/omnibox/browser/omnibox_view.h b/components/omnibox/browser/omnibox_view.h
index 31bdb558d990c5ca4b8a378287323730645de0a0..6095561e3ff3f9648358a36cc9ff68fd6ba2813a 100644
--- a/components/omnibox/browser/omnibox_view.h
+++ b/components/omnibox/browser/omnibox_view.h
@@ -28,6 +28,10 @@ class OmniboxEditController;
class OmniboxViewMacTest;
class ToolbarModel;
+namespace gfx {
+enum class VectorIconId;
+}
+
class OmniboxView {
public:
virtual ~OmniboxView();
@@ -71,6 +75,9 @@ class OmniboxView {
// Returns the resource ID of the icon to show for the current text.
int GetIcon() const;
+ // Like GetIcon(), but returns a vector icon identifier.
+ gfx::VectorIconId GetVectorIcon() const;
+
// The user text is the text the user has manually keyed in. When present,
// this is shown in preference to the permanent text; hitting escape will
// revert to the permanent text.
« no previous file with comments | « chrome/browser/ui/views/location_bar/location_bar_view.cc ('k') | components/omnibox/browser/omnibox_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698