Chromium Code Reviews| Index: components/infobars/core/simple_alert_infobar_delegate.h |
| diff --git a/components/infobars/core/simple_alert_infobar_delegate.h b/components/infobars/core/simple_alert_infobar_delegate.h |
| index b52f5df7578e61a376c59463d896471a23270f1d..1c5da6d5af92ce943a653317574cc48741d1d83a 100644 |
| --- a/components/infobars/core/simple_alert_infobar_delegate.h |
| +++ b/components/infobars/core/simple_alert_infobar_delegate.h |
| @@ -9,6 +9,7 @@ |
| #include "base/compiler_specific.h" |
| #include "base/strings/string16.h" |
| #include "components/infobars/core/confirm_infobar_delegate.h" |
| +#include "ui/gfx/vector_icons_public.h" |
| namespace infobars { |
| class InfoBarManager; |
| @@ -18,24 +19,30 @@ class SimpleAlertInfoBarDelegate : public ConfirmInfoBarDelegate { |
| public: |
| // Creates a simple alert infobar and delegate and adds the infobar to |
| // |infobar_manager|. |icon_id| may be kNoIconID if no icon is shown. |
| + // |vector_icon_id| may be gfx::VectorIconId::VECTOR_ICON_NONE if no icon |
| + // is shown. |
|
Peter Kasting
2015/09/25 23:14:34
Nit: Maybe this sentence should be "If |vector_ico
Evan Stade
2015/09/25 23:18:15
ok
|
| static void Create(infobars::InfoBarManager* infobar_manager, |
| int icon_id, |
| + gfx::VectorIconId vector_icon_id, |
| const base::string16& message, |
| bool auto_expire); |
| private: |
| SimpleAlertInfoBarDelegate(int icon_id, |
| + gfx::VectorIconId vector_icon_id, |
| const base::string16& message, |
| bool auto_expire); |
| ~SimpleAlertInfoBarDelegate() override; |
| // ConfirmInfoBarDelegate: |
| int GetIconId() const override; |
| + gfx::VectorIconId GetVectorIconId() const override; |
| bool ShouldExpire(const NavigationDetails& details) const override; |
| base::string16 GetMessageText() const override; |
| int GetButtons() const override; |
| const int icon_id_; |
| + gfx::VectorIconId vector_icon_id_; |
| base::string16 message_; |
| bool auto_expire_; // Should it expire automatically on navigation? |