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

Unified Diff: chrome/browser/dom_ui/app_launcher_handler.h

Issue 3453029: Add user customizable launch type for apps. (Closed)
Patch Set: No images this time. Created 10 years, 3 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
« no previous file with comments | « chrome/browser/chromeos/cros_settings.h ('k') | chrome/browser/dom_ui/app_launcher_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/dom_ui/app_launcher_handler.h
diff --git a/chrome/browser/dom_ui/app_launcher_handler.h b/chrome/browser/dom_ui/app_launcher_handler.h
index ac29dfb4946c3ecbb478e9e4d9bf12a18dacba37..23c1753d35c42a0797a8d3fd52e5532021ff595d 100644
--- a/chrome/browser/dom_ui/app_launcher_handler.h
+++ b/chrome/browser/dom_ui/app_launcher_handler.h
@@ -9,11 +9,15 @@
#include "base/scoped_ptr.h"
#include "chrome/browser/dom_ui/dom_ui.h"
#include "chrome/browser/extensions/extension_install_ui.h"
+#include "chrome/browser/prefs/pref_change_registrar.h"
#include "chrome/common/notification_observer.h"
#include "chrome/common/notification_registrar.h"
class Extension;
+class ExtensionPrefs;
class ExtensionsService;
+class NotificationRegistrar;
+class PrefChangeRegistrar;
namespace gfx {
class Rect;
@@ -38,7 +42,12 @@ class AppLauncherHandler
const NotificationDetails& details);
// Populate a dictionary with the information from an extension.
- static void CreateAppInfo(Extension* extension, DictionaryValue* value);
+ static void CreateAppInfo(Extension* extension,
+ ExtensionPrefs* extension_prefs,
+ DictionaryValue* value);
+
+ // Populate the given dictionary with all installed app info.
+ void FillAppDictionary(DictionaryValue* value);
// Callback for the "getApps" message.
void HandleGetApps(const ListValue* args);
@@ -46,6 +55,9 @@ class AppLauncherHandler
// Callback for the "launchApp" message.
void HandleLaunchApp(const ListValue* args);
+ // Callback for the "setLaunchType" message.
+ void HandleSetLaunchType(const ListValue* args);
+
// Callback for the "uninstallApp" message.
void HandleUninstallApp(const ListValue* args);
@@ -69,6 +81,9 @@ class AppLauncherHandler
// when necessary.
NotificationRegistrar registrar_;
+ // Monitor extension preference changes so that the DOM UI can be notified.
+ PrefChangeRegistrar pref_change_registrar_;
+
// Used to show confirmation UI for uninstalling/enabling extensions in
// incognito mode.
scoped_ptr<ExtensionInstallUI> install_ui_;
« no previous file with comments | « chrome/browser/chromeos/cros_settings.h ('k') | chrome/browser/dom_ui/app_launcher_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698