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

Side by Side Diff: chrome/browser/ui/views/conflicting_module_view_win.h

Issue 1100223002: Update {virtual,override} to follow C++11 style in chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 8 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
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_VIEWS_CONFLICTING_MODULE_VIEW_WIN_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_CONFLICTING_MODULE_VIEW_WIN_H_
6 #define CHROME_BROWSER_UI_VIEWS_CONFLICTING_MODULE_VIEW_WIN_H_ 6 #define CHROME_BROWSER_UI_VIEWS_CONFLICTING_MODULE_VIEW_WIN_H_
7 7
8 #include "content/public/browser/notification_observer.h" 8 #include "content/public/browser/notification_observer.h"
9 #include "content/public/browser/notification_registrar.h" 9 #include "content/public/browser/notification_registrar.h"
10 #include "ui/views/bubble/bubble_delegate.h" 10 #include "ui/views/bubble/bubble_delegate.h"
(...skipping 14 matching lines...) Expand all
25 public content::NotificationObserver { 25 public content::NotificationObserver {
26 public: 26 public:
27 ConflictingModuleView(views::View* anchor_view, 27 ConflictingModuleView(views::View* anchor_view,
28 Browser* browser, 28 Browser* browser,
29 const GURL& help_center_url); 29 const GURL& help_center_url);
30 30
31 // Show the Disabled Extension bubble, if needed. 31 // Show the Disabled Extension bubble, if needed.
32 static void MaybeShow(Browser* browser, views::View* anchor_view); 32 static void MaybeShow(Browser* browser, views::View* anchor_view);
33 33
34 private: 34 private:
35 virtual ~ConflictingModuleView(); 35 ~ConflictingModuleView() override;
36 36
37 // Shows the bubble and updates the counter for how often it has been shown. 37 // Shows the bubble and updates the counter for how often it has been shown.
38 void ShowBubble(); 38 void ShowBubble();
39 39
40 // Dismiss and make sure the bubble is not shown again. This bubble is a 40 // Dismiss and make sure the bubble is not shown again. This bubble is a
41 // single-appearance bubble. 41 // single-appearance bubble.
42 void DismissBubble(); 42 void DismissBubble();
43 43
44 // views::BubbleDelegateView implementation: 44 // views::BubbleDelegateView implementation:
45 virtual void Init() override; 45 void Init() override;
46 46
47 // views::ButtonListener implementation. 47 // views::ButtonListener implementation.
48 virtual void ButtonPressed(views::Button* sender, 48 void ButtonPressed(views::Button* sender, const ui::Event& event) override;
49 const ui::Event& event) override;
50 49
51 // views::View implementation. 50 // views::View implementation.
52 virtual void GetAccessibleState(ui::AXViewState* state) override; 51 void GetAccessibleState(ui::AXViewState* state) override;
53 virtual void ViewHierarchyChanged( 52 void ViewHierarchyChanged(
54 const ViewHierarchyChangedDetails& details) override; 53 const ViewHierarchyChangedDetails& details) override;
55 54
56 // content::NotificationObserver implementation. 55 // content::NotificationObserver implementation.
57 virtual void Observe( 56 void Observe(
58 int type, 57 int type,
59 const content::NotificationSource& source, 58 const content::NotificationSource& source,
60 const content::NotificationDetails& details) override; 59 const content::NotificationDetails& details) override;
61 60
62 Browser* browser_; 61 Browser* browser_;
63 62
64 content::NotificationRegistrar registrar_; 63 content::NotificationRegistrar registrar_;
65 64
66 // The headline, labels and buttons on the bubble. 65 // The headline, labels and buttons on the bubble.
67 views::Label* explanation_; 66 views::Label* explanation_;
68 views::LabelButton* learn_more_button_; 67 views::LabelButton* learn_more_button_;
69 views::LabelButton* not_now_button_; 68 views::LabelButton* not_now_button_;
70 69
71 // The link to the help center for this conflict. 70 // The link to the help center for this conflict.
72 GURL help_center_url_; 71 GURL help_center_url_;
73 72
74 DISALLOW_COPY_AND_ASSIGN(ConflictingModuleView); 73 DISALLOW_COPY_AND_ASSIGN(ConflictingModuleView);
75 }; 74 };
76 75
77 #endif // CHROME_BROWSER_UI_VIEWS_CONFLICTING_MODULE_VIEW_WIN_H_ 76 #endif // CHROME_BROWSER_UI_VIEWS_CONFLICTING_MODULE_VIEW_WIN_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/color_chooser_win.cc ('k') | chrome/browser/ui/views/desktop_media_picker_views_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698