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 "ui/views/bubble/bubble_delegate.h" | 8 #include "ui/views/bubble/bubble_delegate.h" |
9 #include "ui/views/controls/button/button.h" | 9 #include "ui/views/controls/button/button.h" |
10 #include "ui/views/controls/link_listener.h" | 10 #include "ui/views/controls/link_listener.h" |
(...skipping 13 matching lines...) Expand all Loading... |
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, |
29 Browser* browser, | 29 Browser* browser, |
30 const ExtensionSet* wiped_out); | 30 const ExtensionSet* wiped_out); |
31 | 31 |
32 // Show the Disabled Extension bubble, if needed. Returns true if the bubble | 32 // Show the Disabled Extension bubble, if needed. Returns true if the bubble |
33 // was shown. | 33 // was shown. |
34 static bool MaybeShow(Browser* browser, views::View* anchor_view); | 34 static void MaybeShow(Browser* browser, views::View* anchor_view); |
35 | 35 |
36 protected: | 36 protected: |
37 // views::BubbleDelegateView overrides: | 37 // views::BubbleDelegateView overrides: |
38 virtual void Init() OVERRIDE; | 38 virtual void Init() OVERRIDE; |
39 | 39 |
40 private: | 40 private: |
41 virtual ~DisabledExtensionsView(); | 41 virtual ~DisabledExtensionsView(); |
42 | 42 |
43 // views::ButtonListener implementation. | 43 // views::ButtonListener implementation. |
44 virtual void ButtonPressed(views::Button* sender, | 44 virtual void ButtonPressed(views::Button* sender, |
(...skipping 16 matching lines...) Expand all Loading... |
61 // The headline and buttons on the bubble. | 61 // The headline and buttons on the bubble. |
62 views::Label* headline_; | 62 views::Label* headline_; |
63 views::Link* learn_more_; | 63 views::Link* learn_more_; |
64 views::NativeTextButton* settings_button_; | 64 views::NativeTextButton* settings_button_; |
65 views::NativeTextButton* dismiss_button_; | 65 views::NativeTextButton* dismiss_button_; |
66 | 66 |
67 DISALLOW_COPY_AND_ASSIGN(DisabledExtensionsView); | 67 DISALLOW_COPY_AND_ASSIGN(DisabledExtensionsView); |
68 }; | 68 }; |
69 | 69 |
70 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_DISABLED_EXTENSIONS_VIEW_H_ | 70 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_DISABLED_EXTENSIONS_VIEW_H_ |
OLD | NEW |