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

Side by Side Diff: chrome/browser/api/infobars/infobar_delegate.h

Issue 12017031: infobars: Remove the downcast AsAlternateNavInfoBarDelegate() function. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/api/infobars/infobar_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_API_INFOBARS_INFOBAR_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_API_INFOBARS_INFOBAR_DELEGATE_H_
6 #define CHROME_BROWSER_API_INFOBARS_INFOBAR_DELEGATE_H_ 6 #define CHROME_BROWSER_API_INFOBARS_INFOBAR_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/string16.h" 9 #include "base/string16.h"
10 #include "webkit/glue/window_open_disposition.h" 10 #include "webkit/glue/window_open_disposition.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 86
87 // Return the icon to be shown for this InfoBar. If the returned Image is 87 // Return the icon to be shown for this InfoBar. If the returned Image is
88 // NULL, no icon is shown. 88 // NULL, no icon is shown.
89 virtual gfx::Image* GetIcon() const; 89 virtual gfx::Image* GetIcon() const;
90 90
91 // Returns the type of the infobar. The type determines the appearance (such 91 // Returns the type of the infobar. The type determines the appearance (such
92 // as background color) of the infobar. 92 // as background color) of the infobar.
93 virtual Type GetInfoBarType() const; 93 virtual Type GetInfoBarType() const;
94 94
95 // Type-checking downcast routines: 95 // Type-checking downcast routines:
96 virtual AlternateNavInfoBarDelegate* AsAlternateNavInfoBarDelegate();
97 virtual AutoLoginInfoBarDelegate* AsAutoLoginInfoBarDelegate(); 96 virtual AutoLoginInfoBarDelegate* AsAutoLoginInfoBarDelegate();
98 virtual ConfirmInfoBarDelegate* AsConfirmInfoBarDelegate(); 97 virtual ConfirmInfoBarDelegate* AsConfirmInfoBarDelegate();
99 virtual ExtensionInfoBarDelegate* AsExtensionInfoBarDelegate(); 98 virtual ExtensionInfoBarDelegate* AsExtensionInfoBarDelegate();
100 virtual InsecureContentInfoBarDelegate* AsInsecureContentInfoBarDelegate(); 99 virtual InsecureContentInfoBarDelegate* AsInsecureContentInfoBarDelegate();
101 virtual MediaStreamInfoBarDelegate* AsMediaStreamInfoBarDelegate(); 100 virtual MediaStreamInfoBarDelegate* AsMediaStreamInfoBarDelegate();
102 virtual RegisterProtocolHandlerInfoBarDelegate* 101 virtual RegisterProtocolHandlerInfoBarDelegate*
103 AsRegisterProtocolHandlerInfoBarDelegate(); 102 AsRegisterProtocolHandlerInfoBarDelegate();
104 virtual ThemeInstalledInfoBarDelegate* AsThemePreviewInfobarDelegate(); 103 virtual ThemeInstalledInfoBarDelegate* AsThemePreviewInfobarDelegate();
105 virtual ThreeDAPIInfoBarDelegate* AsThreeDAPIInfoBarDelegate(); 104 virtual ThreeDAPIInfoBarDelegate* AsThreeDAPIInfoBarDelegate();
106 virtual TranslateInfoBarDelegate* AsTranslateInfoBarDelegate(); 105 virtual TranslateInfoBarDelegate* AsTranslateInfoBarDelegate();
(...skipping 23 matching lines...) Expand all
130 // opened for. Used to help expire on navigations. 129 // opened for. Used to help expire on navigations.
131 int contents_unique_id_; 130 int contents_unique_id_;
132 131
133 // TODO(pkasting): Remove. 132 // TODO(pkasting): Remove.
134 InfoBarService* owner_; 133 InfoBarService* owner_;
135 134
136 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate); 135 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate);
137 }; 136 };
138 137
139 #endif // CHROME_BROWSER_API_INFOBARS_INFOBAR_DELEGATE_H_ 138 #endif // CHROME_BROWSER_API_INFOBARS_INFOBAR_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/api/infobars/infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698