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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/extensions/disabled_extensions_view.h
===================================================================
--- chrome/browser/ui/views/extensions/disabled_extensions_view.h (revision 0)
+++ chrome/browser/ui/views/extensions/disabled_extensions_view.h (revision 0)
@@ -0,0 +1,70 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_DISABLED_EXTENSIONS_VIEW_H_
+#define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_DISABLED_EXTENSIONS_VIEW_H_
+
+#include "ui/views/bubble/bubble_delegate.h"
+#include "ui/views/controls/button/button.h"
+#include "ui/views/controls/link_listener.h"
+#include "chrome/common/extensions/extension_set.h"
+
+class Browser;
+
+namespace views {
+class Label;
+class Link;
+class NativeTextButton;
+}
+
+// This is the class that implements the UI for the bubble showing which
+// extensions have been automatically disabled by the sideload-wipeout
+// initiative.
+class DisabledExtensionsView : public views::BubbleDelegateView,
+ public views::ButtonListener,
+ public views::LinkListener {
+ public:
+ DisabledExtensionsView(views::View* anchor_view,
+ Browser* browser,
+ const ExtensionSet* wiped_out);
+
+ // Show the Disabled Extension bubble, if needed. Returns true if the bubble
+ // was shown.
+ static bool MaybeShow(Browser* browser, views::View* anchor_view);
+
+ protected:
+ // views::BubbleDelegateView overrides:
+ virtual void Init() OVERRIDE;
+
+ private:
+ virtual ~DisabledExtensionsView();
+
+ // views::ButtonListener implementation.
+ virtual void ButtonPressed(views::Button* sender,
+ const ui::Event& event) OVERRIDE;
+
+ // views::LinkListener implementation.
+ void LinkClicked(views::Link* source, int event_flags) OVERRIDE;
+
+ // views::View implementation.
+ virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
+ virtual void ViewHierarchyChanged(bool is_add,
+ View* parent,
+ View* child) OVERRIDE;
+
+ Browser* browser_;
+
+ // The set of extensions that have been wiped out by sideload wipeout.
+ scoped_ptr<const ExtensionSet> wiped_out_;
+
+ // The headline and buttons on the bubble.
+ views::Label* headline_;
+ views::Link* learn_more_;
+ views::NativeTextButton* settings_button_;
+ views::NativeTextButton* dismiss_button_;
+
+ DISALLOW_COPY_AND_ASSIGN(DisabledExtensionsView);
+};
+
+#endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_DISABLED_EXTENSIONS_VIEW_H_
Property changes on: chrome\browser\ui\views\extensions\disabled_extensions_view.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/browser/ui/browser_ui_prefs.cc ('k') | chrome/browser/ui/views/extensions/disabled_extensions_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698