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

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

Issue 240193003: Move Infobars core files to the Infobars component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nib name on mac Created 6 years, 8 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 COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_
6 #define CHROME_BROWSER_INFOBARS_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 AutoLoginInfoBarDelegate; 12 class AutoLoginInfoBarDelegate;
13 class ConfirmInfoBarDelegate; 13 class ConfirmInfoBarDelegate;
14 class ExtensionInfoBarDelegate; 14 class ExtensionInfoBarDelegate;
15 class InfoBar;
16 class InsecureContentInfoBarDelegate; 15 class InsecureContentInfoBarDelegate;
17 class MediaStreamInfoBarDelegate; 16 class MediaStreamInfoBarDelegate;
18 class PopupBlockedInfoBarDelegate; 17 class PopupBlockedInfoBarDelegate;
19 class RegisterProtocolHandlerInfoBarDelegate; 18 class RegisterProtocolHandlerInfoBarDelegate;
20 class ScreenCaptureInfoBarDelegate; 19 class ScreenCaptureInfoBarDelegate;
21 class ThemeInstalledInfoBarDelegate; 20 class ThemeInstalledInfoBarDelegate;
22 class ThreeDAPIInfoBarDelegate; 21 class ThreeDAPIInfoBarDelegate;
23 class TranslateInfoBarDelegate; 22 class TranslateInfoBarDelegate;
24 23
25 namespace gfx { 24 namespace gfx {
26 class Image; 25 class Image;
27 } 26 }
28 27
28 namespace infobars {
29
30 class InfoBar;
31
29 // An interface implemented by objects wishing to control an InfoBar. 32 // An interface implemented by objects wishing to control an InfoBar.
30 // Implementing this interface is not sufficient to use an InfoBar, since it 33 // Implementing this interface is not sufficient to use an InfoBar, since it
31 // does not map to a specific InfoBar type. Instead, you must implement 34 // does not map to a specific InfoBar type. Instead, you must implement
32 // ConfirmInfoBarDelegate, or override with your own delegate for your own 35 // ConfirmInfoBarDelegate, or override with your own delegate for your own
33 // InfoBar variety. 36 // InfoBar variety.
34 class InfoBarDelegate { 37 class InfoBarDelegate {
35 public: 38 public:
36 // The type of the infobar. It controls its appearance, such as its background 39 // The type of the infobar. It controls its appearance, such as its background
37 // color. 40 // color.
38 enum Type { 41 enum Type {
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 // The unique id of the active NavigationEntry of the WebContents that we were 136 // The unique id of the active NavigationEntry of the WebContents that we were
134 // opened for. Used to help expire on navigations. 137 // opened for. Used to help expire on navigations.
135 int contents_unique_id_; 138 int contents_unique_id_;
136 139
137 // The InfoBar associated with us. 140 // The InfoBar associated with us.
138 InfoBar* infobar_; 141 InfoBar* infobar_;
139 142
140 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate); 143 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate);
141 }; 144 };
142 145
143 #endif // CHROME_BROWSER_INFOBARS_INFOBAR_DELEGATE_H_ 146 } // namespace infobars
147
148 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_
OLDNEW
« no previous file with comments | « components/infobars/core/infobar_container.cc ('k') | components/infobars/core/infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698