OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_EXTENSIONS_DISABLED_EXTENSIONS_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_DISABLED_EXTENSIONS_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_DISABLED_EXTENSIONS_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_DISABLED_EXTENSIONS_VIEW_H_ |
7 | 7 |
| 8 #include "chrome/common/extensions/extension_set.h" |
8 #include "ui/views/bubble/bubble_delegate.h" | 9 #include "ui/views/bubble/bubble_delegate.h" |
9 #include "ui/views/controls/button/button.h" | 10 #include "ui/views/controls/button/button.h" |
10 #include "ui/views/controls/link_listener.h" | 11 #include "ui/views/controls/link_listener.h" |
11 #include "chrome/common/extensions/extension_set.h" | |
12 | 12 |
13 class Browser; | 13 class Browser; |
14 | 14 |
15 namespace views { | 15 namespace views { |
16 class Label; | 16 class Label; |
| 17 class LabelButton; |
17 class Link; | 18 class Link; |
18 class NativeTextButton; | |
19 } | 19 } |
20 | 20 |
21 // This is the class that implements the UI for the bubble showing which | 21 // This is the class that implements the UI for the bubble showing which |
22 // extensions have been automatically disabled by the sideload-wipeout | 22 // extensions have been automatically disabled by the sideload-wipeout |
23 // initiative. | 23 // initiative. |
24 class DisabledExtensionsView : public views::BubbleDelegateView, | 24 class DisabledExtensionsView : public views::BubbleDelegateView, |
25 public views::ButtonListener, | 25 public views::ButtonListener, |
26 public views::LinkListener { | 26 public views::LinkListener { |
27 public: | 27 public: |
28 DisabledExtensionsView(views::View* anchor_view, | 28 DisabledExtensionsView(views::View* anchor_view, |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 base::WeakPtrFactory<DisabledExtensionsView> weak_factory_; | 68 base::WeakPtrFactory<DisabledExtensionsView> weak_factory_; |
69 | 69 |
70 Browser* browser_; | 70 Browser* browser_; |
71 | 71 |
72 // The set of extensions that have been wiped out by sideload wipeout. | 72 // The set of extensions that have been wiped out by sideload wipeout. |
73 scoped_ptr<const ExtensionSet> wiped_out_; | 73 scoped_ptr<const ExtensionSet> wiped_out_; |
74 | 74 |
75 // The headline, labels and buttons on the bubble. | 75 // The headline, labels and buttons on the bubble. |
76 views::Label* headline_; | 76 views::Label* headline_; |
77 views::Link* learn_more_; | 77 views::Link* learn_more_; |
78 views::NativeTextButton* settings_button_; | 78 views::LabelButton* settings_button_; |
79 views::NativeTextButton* dismiss_button_; | 79 views::LabelButton* dismiss_button_; |
80 views::Label* recourse_; | 80 views::Label* recourse_; |
81 | 81 |
82 // Offset (in pixels) of the Learn More link relative to the top left corner | 82 // Offset (in pixels) of the Learn More link relative to the top left corner |
83 // (in LTR coordinate systems) of the |recourse_| label. This is used to | 83 // (in LTR coordinate systems) of the |recourse_| label. This is used to |
84 // position the Learn More link. | 84 // position the Learn More link. |
85 gfx::Size link_offset_; | 85 gfx::Size link_offset_; |
86 | 86 |
87 DISALLOW_COPY_AND_ASSIGN(DisabledExtensionsView); | 87 DISALLOW_COPY_AND_ASSIGN(DisabledExtensionsView); |
88 }; | 88 }; |
89 | 89 |
90 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_DISABLED_EXTENSIONS_VIEW_H_ | 90 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_DISABLED_EXTENSIONS_VIEW_H_ |
OLD | NEW |