Chromium Code Reviews| Index: chrome/browser/infobars/infobar_delegate.h |
| diff --git a/chrome/browser/infobars/infobar_delegate.h b/chrome/browser/infobars/infobar_delegate.h |
| index 1fb7d632a9d9b1197125bcdeefbc3e1bd00099e3..d5f215aaed102aac80c9b1053ac026634e99fd40 100644 |
| --- a/chrome/browser/infobars/infobar_delegate.h |
| +++ b/chrome/browser/infobars/infobar_delegate.h |
| @@ -78,9 +78,9 @@ class InfoBarDelegate { |
| // Called when the user clicks on the close button to dismiss the infobar. |
| virtual void InfoBarDismissed(); |
| - // Return the icon to be shown for this InfoBar. If the returned Image is |
| - // NULL, no icon is shown. |
| - virtual gfx::Image* GetIcon() const; |
| + // Return the resource ID of the icon to be shown for this InfoBar. If the |
| + // value is -1, no icon is shown. |
| + virtual int GetIconID() const; |
| // Returns the type of the infobar. The type determines the appearance (such |
| // as background color) of the infobar. |
| @@ -103,6 +103,10 @@ class InfoBarDelegate { |
| return owner_ ? owner_->web_contents() : NULL; |
| } |
| + // Return the icon to be shown for this InfoBar. If the returned Image is |
| + // NULL, no icon is shown. |
|
sky
2013/05/14 21:02:03
nit: document ownership here.
Is there a reason w
gone
2013/05/14 22:31:44
I think it's because the ResourceBundle caches eve
Peter Kasting
2013/05/15 00:18:52
How does returning an Image instead of an Image* m
|
| + gfx::Image* GetIcon() const; |
| + |
| protected: |
| // If |contents| is non-NULL, its active entry's unique ID will be stored |
| // using StoreActiveEntryUniqueID automatically. |