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

Side by Side 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: rename resources 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 unified diff | Download patch | Annotate | Revision Log
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_WEBUI_EXTENSIONS_EXTENSION_INFO_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_INFO_UI_H_
7 #pragma once
8
9 #include "content/public/browser/web_ui_controller.h"
10
11 namespace base {
12 class ListValue;
13 }
14
15 namespace extensions {
16 class Extension;
17 }
18
19 // WebUI controller for the informative bubble shown on clicking a script badge.
20 class ExtensionInfoUI : public content::WebUIController {
21 public:
22 explicit ExtensionInfoUI(content::WebUI* web_ui);
23
24 // Returns the chrome://extension-info/ URL for this extension.
25 static GURL GetURL(const std::string& extension_id);
26
27 private:
28 virtual ~ExtensionInfoUI();
29
30 // Callback for "requestExtensionInfo" message.
31 void HandleRequestExtensionInfo(const base::ListValue* args);
32
33 const extensions::Extension* extension_;
34
35 DISALLOW_COPY_AND_ASSIGN(ExtensionInfoUI);
36 };
37
38 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_INFO_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698