| OLD | NEW |
| 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 24 matching lines...) Expand all Loading... |
| 35 virtual ~ConflictingModuleView(); | 35 virtual ~ConflictingModuleView(); |
| 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 virtual void Init() override; |
| 46 | 46 |
| 47 // views::ButtonListener implementation. | 47 // views::ButtonListener implementation. |
| 48 virtual void ButtonPressed(views::Button* sender, | 48 virtual void ButtonPressed(views::Button* sender, |
| 49 const ui::Event& event) OVERRIDE; | 49 const ui::Event& event) override; |
| 50 | 50 |
| 51 // views::View implementation. | 51 // views::View implementation. |
| 52 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE; | 52 virtual void GetAccessibleState(ui::AXViewState* state) override; |
| 53 virtual void ViewHierarchyChanged( | 53 virtual void ViewHierarchyChanged( |
| 54 const ViewHierarchyChangedDetails& details) OVERRIDE; | 54 const ViewHierarchyChangedDetails& details) override; |
| 55 | 55 |
| 56 // content::NotificationObserver implementation. | 56 // content::NotificationObserver implementation. |
| 57 virtual void Observe( | 57 virtual void Observe( |
| 58 int type, | 58 int type, |
| 59 const content::NotificationSource& source, | 59 const content::NotificationSource& source, |
| 60 const content::NotificationDetails& details) OVERRIDE; | 60 const content::NotificationDetails& details) override; |
| 61 | 61 |
| 62 Browser* browser_; | 62 Browser* browser_; |
| 63 | 63 |
| 64 content::NotificationRegistrar registrar_; | 64 content::NotificationRegistrar registrar_; |
| 65 | 65 |
| 66 // The headline, labels and buttons on the bubble. | 66 // The headline, labels and buttons on the bubble. |
| 67 views::Label* explanation_; | 67 views::Label* explanation_; |
| 68 views::LabelButton* learn_more_button_; | 68 views::LabelButton* learn_more_button_; |
| 69 views::LabelButton* not_now_button_; | 69 views::LabelButton* not_now_button_; |
| 70 | 70 |
| 71 // The link to the help center for this conflict. | 71 // The link to the help center for this conflict. |
| 72 GURL help_center_url_; | 72 GURL help_center_url_; |
| 73 | 73 |
| 74 DISALLOW_COPY_AND_ASSIGN(ConflictingModuleView); | 74 DISALLOW_COPY_AND_ASSIGN(ConflictingModuleView); |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 #endif // CHROME_BROWSER_UI_VIEWS_CONFLICTING_MODULE_VIEW_WIN_H_ | 77 #endif // CHROME_BROWSER_UI_VIEWS_CONFLICTING_MODULE_VIEW_WIN_H_ |
| OLD | NEW |