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

Side by Side Diff: chrome/browser/ui/views/extensions/disabled_extensions_view.h

Issue 11232060: Make sure sideload wipeout doesn't interfere with the tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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 | Annotate | Revision Log
OLDNEW
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
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 // Makes sure the bubble is not shown again.
44 void DontShowBubbleAgain();
45
43 // views::ButtonListener implementation. 46 // views::ButtonListener implementation.
44 virtual void ButtonPressed(views::Button* sender, 47 virtual void ButtonPressed(views::Button* sender,
45 const ui::Event& event) OVERRIDE; 48 const ui::Event& event) OVERRIDE;
46 49
47 // views::LinkListener implementation. 50 // views::LinkListener implementation.
48 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; 51 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE;
49 52
50 // views::View implementation. 53 // views::View implementation.
51 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; 54 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
52 virtual void ViewHierarchyChanged(bool is_add, 55 virtual void ViewHierarchyChanged(bool is_add,
53 View* parent, 56 View* parent,
54 View* child) OVERRIDE; 57 View* child) OVERRIDE;
55 58
56 Browser* browser_; 59 Browser* browser_;
57 60
58 // The set of extensions that have been wiped out by sideload wipeout. 61 // The set of extensions that have been wiped out by sideload wipeout.
59 scoped_ptr<const ExtensionSet> wiped_out_; 62 scoped_ptr<const ExtensionSet> wiped_out_;
60 63
61 // The headline and buttons on the bubble. 64 // The headline and buttons on the bubble.
62 views::Label* headline_; 65 views::Label* headline_;
63 views::Link* learn_more_; 66 views::Link* learn_more_;
64 views::NativeTextButton* settings_button_; 67 views::NativeTextButton* settings_button_;
65 views::NativeTextButton* dismiss_button_; 68 views::NativeTextButton* dismiss_button_;
66 69
67 DISALLOW_COPY_AND_ASSIGN(DisabledExtensionsView); 70 DISALLOW_COPY_AND_ASSIGN(DisabledExtensionsView);
68 }; 71 };
69 72
70 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_DISABLED_EXTENSIONS_VIEW_H_ 73 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_DISABLED_EXTENSIONS_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698