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

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

Issue 922953002: Minor infobar cleanup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resync Created 5 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 75225e53d36580f0e13fd38622d94484b769392b..af9a7f2a191fb8d6b0712f874f326e87c9de17eb 100644
--- a/components/infobars/core/infobar_delegate.h
+++ b/components/infobars/core/infobar_delegate.h
@@ -96,10 +96,6 @@ 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 equal to |kNoIconID|, 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.
virtual Type GetInfoBarType() const;
@@ -116,6 +112,7 @@ class InfoBarDelegate {
AsRegisterProtocolHandlerInfoBarDelegate();
virtual ScreenCaptureInfoBarDelegate* AsScreenCaptureInfoBarDelegate();
virtual ThemeInstalledInfoBarDelegate* AsThemePreviewInfobarDelegate();
+ virtual ThreeDAPIInfoBarDelegate* AsThreeDAPIInfoBarDelegate();
virtual translate::TranslateInfoBarDelegate* AsTranslateInfoBarDelegate();
void set_infobar(InfoBar* infobar) { infobar_ = infobar; }
@@ -126,7 +123,7 @@ class InfoBarDelegate {
// Return the icon to be shown for this InfoBar. If the returned Image is
// empty, no icon is shown.
- virtual gfx::Image GetIcon() const;
+ gfx::Image GetIcon() const;
protected:
InfoBarDelegate();
@@ -138,6 +135,10 @@ class InfoBarDelegate {
InfoBar* infobar() { return infobar_; }
private:
+ // Return the resource ID of the icon to be shown for this InfoBar. If the
+ // value is equal to |kNoIconID|, no icon is shown.
+ virtual int GetIconID() const;
+
// The unique id of the active NavigationEntry of the WebContents that we were
// opened for. Used to help expire on navigations.
int contents_unique_id_;

Powered by Google App Engine
This is Rietveld 408576698