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

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

Issue 5976005: show notification on locale change (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: infobar -> SystemNotification Created 9 years, 11 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_TAB_CONTENTS_INFOBAR_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_INFOBAR_DELEGATE_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_INFOBAR_DELEGATE_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_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 "chrome/browser/tab_contents/navigation_controller.h" 11 #include "chrome/browser/tab_contents/navigation_controller.h"
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 explicit LinkInfoBarDelegate(TabContents* contents); 183 explicit LinkInfoBarDelegate(TabContents* contents);
184 184
185 DISALLOW_COPY_AND_ASSIGN(LinkInfoBarDelegate); 185 DISALLOW_COPY_AND_ASSIGN(LinkInfoBarDelegate);
186 }; 186 };
187 187
188 // An interface derived from InfoBarDelegate implemented by objects wishing to 188 // An interface derived from InfoBarDelegate implemented by objects wishing to
189 // control a ConfirmInfoBar. 189 // control a ConfirmInfoBar.
190 class ConfirmInfoBarDelegate : public AlertInfoBarDelegate { 190 class ConfirmInfoBarDelegate : public AlertInfoBarDelegate {
191 public: 191 public:
192 enum InfoBarButton { 192 enum InfoBarButton {
193 BUTTON_NONE = 0, 193 BUTTON_NONE = 0,
194 BUTTON_OK = 1, 194 BUTTON_OK = 1 << 0,
195 BUTTON_CANCEL = 2, 195 BUTTON_CANCEL = 1 << 1,
196 // Specifies that the OK button should be rendered like a default button. 196 // Specifies that the OK button should be rendered like a default button.
197 BUTTON_OK_DEFAULT = 4 197 BUTTON_OK_DEFAULT = 1 << 2
198 }; 198 };
199 199
200 // Return the buttons to be shown for this InfoBar. 200 // Return the buttons to be shown for this InfoBar.
201 virtual int GetButtons() const; 201 virtual int GetButtons() const;
202 202
203 // Return the label for the specified button. The default implementation 203 // Return the label for the specified button. The default implementation
204 // returns "OK" for the OK button and "Cancel" for the Cancel button. 204 // returns "OK" for the OK button and "Cancel" for the Cancel button.
205 virtual string16 GetButtonLabel(InfoBarButton button) const; 205 virtual string16 GetButtonLabel(InfoBarButton button) const;
206 206
207 // Return whether or not the specified button needs elevation. 207 // Return whether or not the specified button needs elevation.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 256
257 private: 257 private:
258 string16 message_; 258 string16 message_;
259 SkBitmap* icon_; 259 SkBitmap* icon_;
260 bool auto_expire_; // Should it expire automatically on navigation? 260 bool auto_expire_; // Should it expire automatically on navigation?
261 261
262 DISALLOW_COPY_AND_ASSIGN(SimpleAlertInfoBarDelegate); 262 DISALLOW_COPY_AND_ASSIGN(SimpleAlertInfoBarDelegate);
263 }; 263 };
264 264
265 #endif // CHROME_BROWSER_TAB_CONTENTS_INFOBAR_DELEGATE_H_ 265 #endif // CHROME_BROWSER_TAB_CONTENTS_INFOBAR_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698