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

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

Issue 10690006: Upstream changes needed by Android auto-login. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Peter's comments Created 8 years, 5 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
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_INFOBARS_INFOBAR_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_INFOBARS_INFOBAR_DELEGATE_H_
6 #define CHROME_BROWSER_INFOBARS_INFOBAR_DELEGATE_H_ 6 #define CHROME_BROWSER_INFOBARS_INFOBAR_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
11 #include "webkit/glue/window_open_disposition.h" 11 #include "webkit/glue/window_open_disposition.h"
12 12
13 class AutoLoginInfoBarDelegate;
13 class ConfirmInfoBarDelegate; 14 class ConfirmInfoBarDelegate;
14 class ExtensionInfoBarDelegate; 15 class ExtensionInfoBarDelegate;
15 class InfoBar; 16 class InfoBar;
16 class InfoBarTabHelper; 17 class InfoBarTabHelper;
17 class InsecureContentInfoBarDelegate; 18 class InsecureContentInfoBarDelegate;
18 class LinkInfoBarDelegate; 19 class LinkInfoBarDelegate;
19 class MediaStreamInfoBarDelegate; 20 class MediaStreamInfoBarDelegate;
20 class PluginInstallerInfoBarDelegate; 21 class PluginInstallerInfoBarDelegate;
21 class RegisterProtocolHandlerInfoBarDelegate; 22 class RegisterProtocolHandlerInfoBarDelegate;
22 class SavePasswordInfoBarDelegate; 23 class SavePasswordInfoBarDelegate;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 91
91 // Return the icon to be shown for this InfoBar. If the returned Image is 92 // Return the icon to be shown for this InfoBar. If the returned Image is
92 // NULL, no icon is shown. 93 // NULL, no icon is shown.
93 virtual gfx::Image* GetIcon() const; 94 virtual gfx::Image* GetIcon() const;
94 95
95 // Returns the type of the infobar. The type determines the appearance (such 96 // Returns the type of the infobar. The type determines the appearance (such
96 // as background color) of the infobar. 97 // as background color) of the infobar.
97 virtual Type GetInfoBarType() const; 98 virtual Type GetInfoBarType() const;
98 99
99 // Type-checking downcast routines: 100 // Type-checking downcast routines:
101 virtual AutoLoginInfoBarDelegate* AsAutoLoginInfoBarDelegate();
100 virtual ConfirmInfoBarDelegate* AsConfirmInfoBarDelegate(); 102 virtual ConfirmInfoBarDelegate* AsConfirmInfoBarDelegate();
101 virtual ExtensionInfoBarDelegate* AsExtensionInfoBarDelegate(); 103 virtual ExtensionInfoBarDelegate* AsExtensionInfoBarDelegate();
102 virtual InsecureContentInfoBarDelegate* AsInsecureContentInfoBarDelegate(); 104 virtual InsecureContentInfoBarDelegate* AsInsecureContentInfoBarDelegate();
103 virtual LinkInfoBarDelegate* AsLinkInfoBarDelegate(); 105 virtual LinkInfoBarDelegate* AsLinkInfoBarDelegate();
104 virtual MediaStreamInfoBarDelegate* AsMediaStreamInfoBarDelegate(); 106 virtual MediaStreamInfoBarDelegate* AsMediaStreamInfoBarDelegate();
105 virtual RegisterProtocolHandlerInfoBarDelegate* 107 virtual RegisterProtocolHandlerInfoBarDelegate*
106 AsRegisterProtocolHandlerInfoBarDelegate(); 108 AsRegisterProtocolHandlerInfoBarDelegate();
107 virtual ThemeInstalledInfoBarDelegate* AsThemePreviewInfobarDelegate(); 109 virtual ThemeInstalledInfoBarDelegate* AsThemePreviewInfobarDelegate();
108 virtual TranslateInfoBarDelegate* AsTranslateInfoBarDelegate(); 110 virtual TranslateInfoBarDelegate* AsTranslateInfoBarDelegate();
109 111
(...skipping 26 matching lines...) Expand all
136 // opened for. Used to help expire on navigations. 138 // opened for. Used to help expire on navigations.
137 int contents_unique_id_; 139 int contents_unique_id_;
138 140
139 // TODO(pkasting): Remove. 141 // TODO(pkasting): Remove.
140 InfoBarTabHelper* owner_; 142 InfoBarTabHelper* owner_;
141 143
142 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate); 144 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate);
143 }; 145 };
144 146
145 #endif // CHROME_BROWSER_INFOBARS_INFOBAR_DELEGATE_H_ 147 #endif // CHROME_BROWSER_INFOBARS_INFOBAR_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/chrome_startup_flags.cc ('k') | chrome/browser/infobars/infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698