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

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

Issue 378253002: Fix translate namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing android build errors Created 6 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
« no previous file with comments | « chrome/test/base/test_browser_window.h ('k') | components/infobars/core/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 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 AutoLoginInfoBarDelegate; 12 class AutoLoginInfoBarDelegate;
13 class ConfirmInfoBarDelegate; 13 class ConfirmInfoBarDelegate;
14 class ExtensionInfoBarDelegate; 14 class ExtensionInfoBarDelegate;
15 class InsecureContentInfoBarDelegate; 15 class InsecureContentInfoBarDelegate;
16 class MediaStreamInfoBarDelegate; 16 class MediaStreamInfoBarDelegate;
17 class PopupBlockedInfoBarDelegate; 17 class PopupBlockedInfoBarDelegate;
18 class RegisterProtocolHandlerInfoBarDelegate; 18 class RegisterProtocolHandlerInfoBarDelegate;
19 class ScreenCaptureInfoBarDelegate; 19 class ScreenCaptureInfoBarDelegate;
20 class ThemeInstalledInfoBarDelegate; 20 class ThemeInstalledInfoBarDelegate;
21 class ThreeDAPIInfoBarDelegate; 21 class ThreeDAPIInfoBarDelegate;
22
23 namespace translate {
22 class TranslateInfoBarDelegate; 24 class TranslateInfoBarDelegate;
25 }
23 26
24 namespace gfx { 27 namespace gfx {
25 class Image; 28 class Image;
26 } 29 }
27 30
28 namespace infobars { 31 namespace infobars {
29 32
30 class InfoBar; 33 class InfoBar;
31 34
32 // An interface implemented by objects wishing to control an InfoBar. 35 // An interface implemented by objects wishing to control an InfoBar.
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 virtual AutoLoginInfoBarDelegate* AsAutoLoginInfoBarDelegate(); 107 virtual AutoLoginInfoBarDelegate* AsAutoLoginInfoBarDelegate();
105 virtual ConfirmInfoBarDelegate* AsConfirmInfoBarDelegate(); 108 virtual ConfirmInfoBarDelegate* AsConfirmInfoBarDelegate();
106 virtual ExtensionInfoBarDelegate* AsExtensionInfoBarDelegate(); 109 virtual ExtensionInfoBarDelegate* AsExtensionInfoBarDelegate();
107 virtual InsecureContentInfoBarDelegate* AsInsecureContentInfoBarDelegate(); 110 virtual InsecureContentInfoBarDelegate* AsInsecureContentInfoBarDelegate();
108 virtual MediaStreamInfoBarDelegate* AsMediaStreamInfoBarDelegate(); 111 virtual MediaStreamInfoBarDelegate* AsMediaStreamInfoBarDelegate();
109 virtual PopupBlockedInfoBarDelegate* AsPopupBlockedInfoBarDelegate(); 112 virtual PopupBlockedInfoBarDelegate* AsPopupBlockedInfoBarDelegate();
110 virtual RegisterProtocolHandlerInfoBarDelegate* 113 virtual RegisterProtocolHandlerInfoBarDelegate*
111 AsRegisterProtocolHandlerInfoBarDelegate(); 114 AsRegisterProtocolHandlerInfoBarDelegate();
112 virtual ScreenCaptureInfoBarDelegate* AsScreenCaptureInfoBarDelegate(); 115 virtual ScreenCaptureInfoBarDelegate* AsScreenCaptureInfoBarDelegate();
113 virtual ThemeInstalledInfoBarDelegate* AsThemePreviewInfobarDelegate(); 116 virtual ThemeInstalledInfoBarDelegate* AsThemePreviewInfobarDelegate();
114 virtual TranslateInfoBarDelegate* AsTranslateInfoBarDelegate(); 117 virtual translate::TranslateInfoBarDelegate* AsTranslateInfoBarDelegate();
115 118
116 void set_infobar(InfoBar* infobar) { infobar_ = infobar; } 119 void set_infobar(InfoBar* infobar) { infobar_ = infobar; }
117 120
118 // Store the unique id for the active entry, to be used later upon navigation 121 // Store the unique id for the active entry, to be used later upon navigation
119 // to determine if this InfoBarDelegate should be expired. 122 // to determine if this InfoBarDelegate should be expired.
120 void StoreActiveEntryUniqueID(); 123 void StoreActiveEntryUniqueID();
121 124
122 // Return the icon to be shown for this InfoBar. If the returned Image is 125 // Return the icon to be shown for this InfoBar. If the returned Image is
123 // empty, no icon is shown. 126 // empty, no icon is shown.
124 virtual gfx::Image GetIcon() const; 127 virtual gfx::Image GetIcon() const;
(...skipping 14 matching lines...) Expand all
139 142
140 // The InfoBar associated with us. 143 // The InfoBar associated with us.
141 InfoBar* infobar_; 144 InfoBar* infobar_;
142 145
143 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate); 146 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate);
144 }; 147 };
145 148
146 } // namespace infobars 149 } // namespace infobars
147 150
148 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ 151 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/test/base/test_browser_window.h ('k') | components/infobars/core/infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698