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

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

Issue 11189094: Implement sideload wipeout for Extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 2 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 | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_DISABLED_EXTENSIONS_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_DISABLED_EXTENSIONS_VIEW_H_
7
8 #include "ui/views/bubble/bubble_delegate.h"
9 #include "ui/views/controls/button/button.h"
10 #include "ui/views/controls/link_listener.h"
11 #include "chrome/common/extensions/extension_set.h"
12
13 class Browser;
14
15 namespace views {
16 class Label;
17 class Link;
18 class NativeTextButton;
19 }
20
21 class DisabledExtensionsView : public views::BubbleDelegateView,
sky 2012/10/19 21:41:36 Add description.
22 public views::ButtonListener,
23 public views::LinkListener {
24 public:
25 // Show the Disabled Extension bubble, if needed. Returns true if the bubble
26 // was shown.
27 static bool MaybeShow(Browser* browser, views::View* anchor_view);
sky 2012/10/19 21:41:36 nit: constructor/destructor before other methods.
28
29 DisabledExtensionsView(views::View* anchor_view,
30 Browser* browser,
31 const ExtensionSet* wiped_out);
32 virtual ~DisabledExtensionsView();
33
34 // views::ButtonListener implementation.
35 virtual void ButtonPressed(views::Button* sender,
36 const ui::Event& event) OVERRIDE;
37
38 // views::LinkListener implementation.
39 void LinkClicked(views::Link* source, int event_flags) OVERRIDE;
40
41 // views::View implementation.
42 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
43 virtual void ViewHierarchyChanged(
44 bool is_add, View* parent, View* child) OVERRIDE;
sky 2012/10/19 21:41:36 nit: wrap each param to its own line.
45
46 protected:
47 // views::BubbleDelegateView overrides:
48 virtual void Init() OVERRIDE;
49
50 private:
51 Browser* browser_;
52
53 // The set of extensions that have been wiped out by sideload wipeout.
54 scoped_ptr<const ExtensionSet> wiped_out_;
55
56 // The headline and buttons on the bubble.
57 views::Label* headline_;
58 views::Link* learn_more_;
59 views::NativeTextButton* settings_button_;
60 views::NativeTextButton* dismiss_button_;
61
62 DISALLOW_COPY_AND_ASSIGN(DisabledExtensionsView);
63 };
64
65 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_DISABLED_EXTENSIONS_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698