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

Unified Diff: chrome/browser/infobars/infobar_delegate.h

Issue 15067008: [InfoBar] Add InfoBarDelegate::GetIconID() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Renaming back to GetIcon() Created 7 years, 7 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: chrome/browser/infobars/infobar_delegate.h
diff --git a/chrome/browser/infobars/infobar_delegate.h b/chrome/browser/infobars/infobar_delegate.h
index 1fb7d632a9d9b1197125bcdeefbc3e1bd00099e3..66324e1934d1faf573f47417ffb3de0f304d1955 100644
--- a/chrome/browser/infobars/infobar_delegate.h
+++ b/chrome/browser/infobars/infobar_delegate.h
@@ -78,9 +78,13 @@ class InfoBarDelegate {
// Called when the user clicks on the close button to dismiss the infobar.
virtual void InfoBarDismissed();
+ // 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;
+
// Return the icon to be shown for this InfoBar. If the returned Image is
// NULL, no icon is shown.
- virtual gfx::Image* GetIcon() const;
+ gfx::Image* GetIcon() const;
tfarina 2013/05/11 00:44:23 if you kept the virtual, you could annotate this m
gone 2013/05/11 00:48:24 Yeah, it turns out that all of the GetIcon() calls
// Returns the type of the infobar. The type determines the appearance (such
// as background color) of the infobar.
« no previous file with comments | « chrome/browser/geolocation/geolocation_infobar_delegate.cc ('k') | chrome/browser/infobars/infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698