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

Unified Diff: components/infobars/core/infobar_delegate.h

Issue 2711623003: Update infobars to use VectorIcon struct instead of VectorIconId. (Closed)
Patch Set: rebase Created 3 years, 10 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: components/infobars/core/infobar_delegate.h
diff --git a/components/infobars/core/infobar_delegate.h b/components/infobars/core/infobar_delegate.h
index 08b7f4f6c9b12db83235fa5d9275e1b65050a1aa..1396e1673b5e239092528abbfd2d08b630b5b1e2 100644
--- a/components/infobars/core/infobar_delegate.h
+++ b/components/infobars/core/infobar_delegate.h
@@ -36,7 +36,7 @@ class TranslateInfoBarDelegate;
namespace gfx {
class Image;
-enum class VectorIconId;
+struct VectorIcon;
}
namespace infobars {
@@ -186,7 +186,7 @@ class InfoBarDelegate {
// Returns the vector icon identifier to be shown for this InfoBar. This will
// take precedence over GetIconId() (although typically only one of the two
// should be defined for any given infobar).
- virtual gfx::VectorIconId GetVectorIconId() const;
+ virtual const gfx::VectorIcon& GetVectorIcon() const;
// Returns the icon to be shown for this InfoBar. If the returned Image is
// empty, no icon is shown.
« no previous file with comments | « chrome/browser/ui/website_settings/website_settings_infobar_delegate.cc ('k') | components/infobars/core/infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698