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

Unified Diff: components/toolbar/toolbar_model.h

Issue 2399333002: Revert of Delete pre-MD code from OmniboxResultView (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « components/toolbar/test_toolbar_model.cc ('k') | components/toolbar/toolbar_model_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/toolbar/toolbar_model.h
diff --git a/components/toolbar/toolbar_model.h b/components/toolbar/toolbar_model.h
index 48a1a8b78d8809d2764284fc357ccf38b83c3970..19c60d1cb31082b8c7ecdf82086b3fef53e427a9 100644
--- a/components/toolbar/toolbar_model.h
+++ b/components/toolbar/toolbar_model.h
@@ -43,10 +43,13 @@
virtual security_state::SecurityStateModel::SecurityLevel GetSecurityLevel(
bool ignore_editing) const = 0;
- // Returns the id of the icon to show to the left of the address, based on the
- // current URL. When search term replacement is active, this returns a search
- // icon. This doesn't cover specialized icons while the user is editing; see
- // OmniboxView::GetVectorIcon().
+ // Returns the resource_id of the icon to show to the left of the address,
+ // based on the current URL. When search term replacement is active, this
+ // returns a search icon. This doesn't cover specialized icons while the
+ // user is editing; see OmniboxView::GetIcon().
+ virtual int GetIcon() const = 0;
+
+ // Like GetIcon(), but gets the vector asset ID.
virtual gfx::VectorIconId GetVectorIcon() const = 0;
// Returns text for the omnibox secure verbose chip.
« no previous file with comments | « components/toolbar/test_toolbar_model.cc ('k') | components/toolbar/toolbar_model_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698