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

Side by Side Diff: chrome/browser/ui/content_settings/media_setting_changed_infobar_delegate.h

Issue 289083004: infobars: Componentize ConfirmInfoBarDelegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_UI_CONTENT_SETTINGS_MEDIA_SETTING_CHANGED_INFOBAR_DELEGAT E_H_ 5 #ifndef CHROME_BROWSER_UI_CONTENT_SETTINGS_MEDIA_SETTING_CHANGED_INFOBAR_DELEGAT E_H_
6 #define CHROME_BROWSER_UI_CONTENT_SETTINGS_MEDIA_SETTING_CHANGED_INFOBAR_DELEGAT E_H_ 6 #define CHROME_BROWSER_UI_CONTENT_SETTINGS_MEDIA_SETTING_CHANGED_INFOBAR_DELEGAT E_H_
7 7
8 #include "chrome/browser/infobars/confirm_infobar_delegate.h" 8 #include "components/infobars/core/confirm_infobar_delegate.h"
9 9
10 class InfoBarService; 10 class InfoBarService;
11 11
12 // An infobar that tells the user a reload is required after changing media 12 // An infobar that tells the user a reload is required after changing media
13 // settings, and allows a reload via a button on the infobar. 13 // settings, and allows a reload via a button on the infobar.
14 class MediaSettingChangedInfoBarDelegate : public ConfirmInfoBarDelegate { 14 class MediaSettingChangedInfoBarDelegate : public ConfirmInfoBarDelegate {
15 public: 15 public:
16 // Creates a media setting changed infobar and delegate and adds the infobar 16 // Creates a media setting changed infobar and delegate and adds the infobar
17 // to |infobar_service|. 17 // to |infobar_service|.
18 static void Create(InfoBarService* infobar_service); 18 static void Create(InfoBarService* infobar_service);
19 19
20 private: 20 private:
21 MediaSettingChangedInfoBarDelegate(); 21 MediaSettingChangedInfoBarDelegate();
22 virtual ~MediaSettingChangedInfoBarDelegate(); 22 virtual ~MediaSettingChangedInfoBarDelegate();
23 23
24 // ConfirmInfoBarDelegate: 24 // ConfirmInfoBarDelegate:
25 virtual int GetIconID() const OVERRIDE; 25 virtual int GetIconID() const OVERRIDE;
26 virtual Type GetInfoBarType() const OVERRIDE; 26 virtual Type GetInfoBarType() const OVERRIDE;
27 virtual base::string16 GetMessageText() const OVERRIDE; 27 virtual base::string16 GetMessageText() const OVERRIDE;
28 virtual int GetButtons() const OVERRIDE; 28 virtual int GetButtons() const OVERRIDE;
29 virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; 29 virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE;
30 virtual bool Accept() OVERRIDE; 30 virtual bool Accept() OVERRIDE;
31 31
32 DISALLOW_COPY_AND_ASSIGN(MediaSettingChangedInfoBarDelegate); 32 DISALLOW_COPY_AND_ASSIGN(MediaSettingChangedInfoBarDelegate);
33 }; 33 };
34 34
35 #endif // CHROME_BROWSER_UI_CONTENT_SETTINGS_MEDIA_SETTING_CHANGED_INFOBAR_DELE GATE_H_ 35 #endif // CHROME_BROWSER_UI_CONTENT_SETTINGS_MEDIA_SETTING_CHANGED_INFOBAR_DELE GATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/collected_cookies_infobar_delegate.h ('k') | chrome/browser/ui/extensions/extension_install_ui_default.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698