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

Side by Side Diff: chrome/browser/recovery/recovery_install_global_error.h

Issue 842063002: Update {virtual,override,final} for chrome/browser/recovery to follow C++11 style. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | chrome/browser/recovery/recovery_install_global_error_factory.h » ('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 (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 CHROME_BROWSER_RECOVERY_RECOVERY_INSTALL_GLOBAL_ERROR_H_ 5 #ifndef CHROME_BROWSER_RECOVERY_RECOVERY_INSTALL_GLOBAL_ERROR_H_
6 #define CHROME_BROWSER_RECOVERY_RECOVERY_INSTALL_GLOBAL_ERROR_H_ 6 #define CHROME_BROWSER_RECOVERY_RECOVERY_INSTALL_GLOBAL_ERROR_H_
7 7
8 #include "base/prefs/pref_change_registrar.h" 8 #include "base/prefs/pref_change_registrar.h"
9 #include "chrome/browser/ui/global_error/global_error.h" 9 #include "chrome/browser/ui/global_error/global_error.h"
10 #include "components/keyed_service/core/keyed_service.h" 10 #include "components/keyed_service/core/keyed_service.h"
11 11
12 class Profile; 12 class Profile;
13 13
14 // Shows elevation needed for recovery component install on the wrench menu 14 // Shows elevation needed for recovery component install on the wrench menu
15 // using a bubble view and a menu item. 15 // using a bubble view and a menu item.
16 class RecoveryInstallGlobalError : public GlobalErrorWithStandardBubble, 16 class RecoveryInstallGlobalError : public GlobalErrorWithStandardBubble,
17 public KeyedService { 17 public KeyedService {
18 public: 18 public:
19 explicit RecoveryInstallGlobalError(Profile* profile); 19 explicit RecoveryInstallGlobalError(Profile* profile);
20 virtual ~RecoveryInstallGlobalError(); 20 ~RecoveryInstallGlobalError() override;
21 21
22 private: 22 private:
23 // KeyedService: 23 // KeyedService:
24 virtual void Shutdown() override; 24 void Shutdown() override;
25 25
26 // GlobalErrorWithStandardBubble: 26 // GlobalErrorWithStandardBubble:
27 virtual Severity GetSeverity() override; 27 Severity GetSeverity() override;
28 virtual bool HasMenuItem() override; 28 bool HasMenuItem() override;
29 virtual int MenuItemCommandID() override; 29 int MenuItemCommandID() override;
30 virtual base::string16 MenuItemLabel() override; 30 base::string16 MenuItemLabel() override;
31 virtual int MenuItemIconResourceID() override; 31 int MenuItemIconResourceID() override;
32 virtual void ExecuteMenuItem(Browser* browser) override; 32 void ExecuteMenuItem(Browser* browser) override;
33 virtual bool HasBubbleView() override; 33 bool HasBubbleView() override;
34 virtual bool HasShownBubbleView() override; 34 bool HasShownBubbleView() override;
35 virtual void ShowBubbleView(Browser* browser) override; 35 void ShowBubbleView(Browser* browser) override;
36 virtual gfx::Image GetBubbleViewIcon() override; 36 gfx::Image GetBubbleViewIcon() override;
37 virtual base::string16 GetBubbleViewTitle() override; 37 base::string16 GetBubbleViewTitle() override;
38 virtual std::vector<base::string16> GetBubbleViewMessages() override; 38 std::vector<base::string16> GetBubbleViewMessages() override;
39 virtual base::string16 GetBubbleViewAcceptButtonLabel() override; 39 base::string16 GetBubbleViewAcceptButtonLabel() override;
40 virtual bool ShouldAddElevationIconToAcceptButton() override; 40 bool ShouldAddElevationIconToAcceptButton() override;
41 virtual base::string16 GetBubbleViewCancelButtonLabel() override; 41 base::string16 GetBubbleViewCancelButtonLabel() override;
42 virtual void OnBubbleViewDidClose(Browser* browser) override; 42 void OnBubbleViewDidClose(Browser* browser) override;
43 virtual void BubbleViewAcceptButtonPressed(Browser* browser) override; 43 void BubbleViewAcceptButtonPressed(Browser* browser) override;
44 virtual void BubbleViewCancelButtonPressed(Browser* browser) override; 44 void BubbleViewCancelButtonPressed(Browser* browser) override;
45 45
46 bool HasElevationNotification() const; 46 bool HasElevationNotification() const;
47 void OnElevationRequirementChanged(); 47 void OnElevationRequirementChanged();
48 48
49 bool elevation_needed_; 49 bool elevation_needed_;
50 50
51 // The Profile this service belongs to. 51 // The Profile this service belongs to.
52 Profile* profile_; 52 Profile* profile_;
53 53
54 // Monitors registry change for recovery component install. 54 // Monitors registry change for recovery component install.
55 PrefChangeRegistrar pref_registrar_; 55 PrefChangeRegistrar pref_registrar_;
56 56
57 bool has_shown_bubble_view_; 57 bool has_shown_bubble_view_;
58 58
59 DISALLOW_COPY_AND_ASSIGN(RecoveryInstallGlobalError); 59 DISALLOW_COPY_AND_ASSIGN(RecoveryInstallGlobalError);
60 }; 60 };
61 61
62 #endif // CHROME_BROWSER_RECOVERY_RECOVERY_INSTALL_GLOBAL_ERROR_H_ 62 #endif // CHROME_BROWSER_RECOVERY_RECOVERY_INSTALL_GLOBAL_ERROR_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/recovery/recovery_install_global_error_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698