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

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

Issue 273223002: views: Make view::Views::GetPreferredSize() const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add two more const for Windows. Created 6 years, 7 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 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"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 virtual int GetIconID() const; 97 virtual int GetIconID() const;
98 98
99 // Returns the type of the infobar. The type determines the appearance (such 99 // Returns the type of the infobar. The type determines the appearance (such
100 // as background color) of the infobar. 100 // as background color) of the infobar.
101 virtual Type GetInfoBarType() const; 101 virtual Type GetInfoBarType() const;
102 102
103 // Type-checking downcast routines: 103 // Type-checking downcast routines:
104 virtual AutoLoginInfoBarDelegate* AsAutoLoginInfoBarDelegate(); 104 virtual AutoLoginInfoBarDelegate* AsAutoLoginInfoBarDelegate();
105 virtual ConfirmInfoBarDelegate* AsConfirmInfoBarDelegate(); 105 virtual ConfirmInfoBarDelegate* AsConfirmInfoBarDelegate();
106 virtual ExtensionInfoBarDelegate* AsExtensionInfoBarDelegate(); 106 virtual ExtensionInfoBarDelegate* AsExtensionInfoBarDelegate();
107 virtual const ExtensionInfoBarDelegate* AsExtensionInfoBarDelegate() const;
107 virtual InsecureContentInfoBarDelegate* AsInsecureContentInfoBarDelegate(); 108 virtual InsecureContentInfoBarDelegate* AsInsecureContentInfoBarDelegate();
108 virtual MediaStreamInfoBarDelegate* AsMediaStreamInfoBarDelegate(); 109 virtual MediaStreamInfoBarDelegate* AsMediaStreamInfoBarDelegate();
109 virtual PopupBlockedInfoBarDelegate* AsPopupBlockedInfoBarDelegate(); 110 virtual PopupBlockedInfoBarDelegate* AsPopupBlockedInfoBarDelegate();
110 virtual RegisterProtocolHandlerInfoBarDelegate* 111 virtual RegisterProtocolHandlerInfoBarDelegate*
111 AsRegisterProtocolHandlerInfoBarDelegate(); 112 AsRegisterProtocolHandlerInfoBarDelegate();
112 virtual ScreenCaptureInfoBarDelegate* AsScreenCaptureInfoBarDelegate(); 113 virtual ScreenCaptureInfoBarDelegate* AsScreenCaptureInfoBarDelegate();
113 virtual ThemeInstalledInfoBarDelegate* AsThemePreviewInfobarDelegate(); 114 virtual ThemeInstalledInfoBarDelegate* AsThemePreviewInfobarDelegate();
114 virtual TranslateInfoBarDelegate* AsTranslateInfoBarDelegate(); 115 virtual TranslateInfoBarDelegate* AsTranslateInfoBarDelegate();
115 116
116 void set_infobar(InfoBar* infobar) { infobar_ = infobar; } 117 void set_infobar(InfoBar* infobar) { infobar_ = infobar; }
(...skipping 22 matching lines...) Expand all
139 140
140 // The InfoBar associated with us. 141 // The InfoBar associated with us.
141 InfoBar* infobar_; 142 InfoBar* infobar_;
142 143
143 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate); 144 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate);
144 }; 145 };
145 146
146 } // namespace infobars 147 } // namespace infobars
147 148
148 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ 149 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698