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

Unified Diff: chrome/browser/ui/webui/extensions/extension_info_ui.h

Issue 10544195: Show an extension info bubble when a script badge is clicked. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase eh Created 8 years, 6 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/webui/extensions/extension_info_ui.h
diff --git a/chrome/browser/ui/webui/extensions/extension_info_ui.h b/chrome/browser/ui/webui/extensions/extension_info_ui.h
new file mode 100644
index 0000000000000000000000000000000000000000..759bf47d051e5a78ffd6e3db13fe1648bb5885fa
--- /dev/null
+++ b/chrome/browser/ui/webui/extensions/extension_info_ui.h
@@ -0,0 +1,37 @@
+// 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_WEBUI_EXTENSIONS_EXTENSION_INFO_UI_H_
+#define CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_INFO_UI_H_
+#pragma once
+
+#include "content/public/browser/web_ui_controller.h"
+#include "googleurl/src/gurl.h"
+
+class ChromeWebUIDataSource;
+
+namespace base {
+class ListValue;
+}
+
+// WebUI controller for the informative bubble shown on clicking a script badge.
+class ExtensionInfoUI : public content::WebUIController {
+ public:
+ explicit ExtensionInfoUI(content::WebUI* web_ui, const GURL& url);
+
+ // Returns the chrome://extension-info/ URL for this extension.
+ static GURL GetURL(const std::string& extension_id);
+
+ private:
+ virtual ~ExtensionInfoUI();
+
+ // Load details about the extension into source_. Called during construction.
+ void AddExtensionDataToSource(const std::string& extension_id);
+
+ ChromeWebUIDataSource* source_;
+
+ DISALLOW_COPY_AND_ASSIGN(ExtensionInfoUI);
+};
+
+#endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_INFO_UI_H_
« no previous file with comments | « chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc ('k') | chrome/browser/ui/webui/extensions/extension_info_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698