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

Side by Side Diff: components/infobars/core/infobar_delegate.h

Issue 861103002: Credentials chooser UI for Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebaised on top of master. 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ 5 #ifndef COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_
6 #define COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ 6 #define COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "ui/base/window_open_disposition.h" 10 #include "ui/base/window_open_disposition.h"
11 11
12 class AccountChooserInfoBarDelegateAndroid;
12 class AutoLoginInfoBarDelegate; 13 class AutoLoginInfoBarDelegate;
13 class ConfirmInfoBarDelegate; 14 class ConfirmInfoBarDelegate;
14 class ExtensionInfoBarDelegate; 15 class ExtensionInfoBarDelegate;
15 class InsecureContentInfoBarDelegate; 16 class InsecureContentInfoBarDelegate;
16 class MediaStreamInfoBarDelegate; 17 class MediaStreamInfoBarDelegate;
17 class NativeAppInfoBarDelegate; 18 class NativeAppInfoBarDelegate;
18 class PopupBlockedInfoBarDelegate; 19 class PopupBlockedInfoBarDelegate;
19 class RegisterProtocolHandlerInfoBarDelegate; 20 class RegisterProtocolHandlerInfoBarDelegate;
20 class ScreenCaptureInfoBarDelegate; 21 class ScreenCaptureInfoBarDelegate;
21 class ThemeInstalledInfoBarDelegate; 22 class ThemeInstalledInfoBarDelegate;
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 99
99 // Return the resource ID of the icon to be shown for this InfoBar. If the 100 // Return the resource ID of the icon to be shown for this InfoBar. If the
100 // value is equal to |kNoIconID|, no icon is shown. 101 // value is equal to |kNoIconID|, no icon is shown.
101 virtual int GetIconID() const; 102 virtual int GetIconID() const;
102 103
103 // Returns the type of the infobar. The type determines the appearance (such 104 // Returns the type of the infobar. The type determines the appearance (such
104 // as background color) of the infobar. 105 // as background color) of the infobar.
105 virtual Type GetInfoBarType() const; 106 virtual Type GetInfoBarType() const;
106 107
107 // Type-checking downcast routines: 108 // Type-checking downcast routines:
109 virtual AccountChooserInfoBarDelegateAndroid*
110 AsAccountChooserInfoBarDelegateAndroid();
108 virtual AutoLoginInfoBarDelegate* AsAutoLoginInfoBarDelegate(); 111 virtual AutoLoginInfoBarDelegate* AsAutoLoginInfoBarDelegate();
109 virtual ConfirmInfoBarDelegate* AsConfirmInfoBarDelegate(); 112 virtual ConfirmInfoBarDelegate* AsConfirmInfoBarDelegate();
110 virtual ExtensionInfoBarDelegate* AsExtensionInfoBarDelegate(); 113 virtual ExtensionInfoBarDelegate* AsExtensionInfoBarDelegate();
111 virtual InsecureContentInfoBarDelegate* AsInsecureContentInfoBarDelegate(); 114 virtual InsecureContentInfoBarDelegate* AsInsecureContentInfoBarDelegate();
112 virtual MediaStreamInfoBarDelegate* AsMediaStreamInfoBarDelegate(); 115 virtual MediaStreamInfoBarDelegate* AsMediaStreamInfoBarDelegate();
113 virtual NativeAppInfoBarDelegate* AsNativeAppInfoBarDelegate(); 116 virtual NativeAppInfoBarDelegate* AsNativeAppInfoBarDelegate();
114 virtual PopupBlockedInfoBarDelegate* AsPopupBlockedInfoBarDelegate(); 117 virtual PopupBlockedInfoBarDelegate* AsPopupBlockedInfoBarDelegate();
115 virtual RegisterProtocolHandlerInfoBarDelegate* 118 virtual RegisterProtocolHandlerInfoBarDelegate*
116 AsRegisterProtocolHandlerInfoBarDelegate(); 119 AsRegisterProtocolHandlerInfoBarDelegate();
117 virtual ScreenCaptureInfoBarDelegate* AsScreenCaptureInfoBarDelegate(); 120 virtual ScreenCaptureInfoBarDelegate* AsScreenCaptureInfoBarDelegate();
(...skipping 26 matching lines...) Expand all
144 147
145 // The InfoBar associated with us. 148 // The InfoBar associated with us.
146 InfoBar* infobar_; 149 InfoBar* infobar_;
147 150
148 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate); 151 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate);
149 }; 152 };
150 153
151 } // namespace infobars 154 } // namespace infobars
152 155
153 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ 156 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698