Index: chrome/common/extensions/api/apps_debugger_private.idl |
diff --git a/chrome/common/extensions/api/apps_debugger_private.idl b/chrome/common/extensions/api/apps_debugger_private.idl |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3d2480be2eaca49a70ccc88977f4ddadc83718dc |
--- /dev/null |
+++ b/chrome/common/extensions/api/apps_debugger_private.idl |
@@ -0,0 +1,72 @@ |
+// 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. |
+ |
+// appsDebuggerPrivate API. |
+ |
+namespace appsDebuggerPrivate { |
+ |
+ dictionary ItemInspectView { |
+ DOMString path; |
+ long renderProcessId; |
+ long renderViewId; |
+ boolean incognito; |
+ }; |
+ |
+ dictionary ItemInfo { |
+ DOMString id; |
+ DOMString name; |
+ DOMString version; |
+ DOMString description; |
+ boolean mayDisable; |
+ boolean enabled; |
+ DOMString? disabledReason; |
+ boolean isApp; |
+ DOMString type; |
+ boolean allow_activity; |
+ boolean allowFileAccess; |
+ boolean wantsFileAccess; |
+ boolean enabledIncognito; |
+ boolean isUnpacked; |
+ boolean allowReload; |
+ DOMString icon; |
+ |
+ // Path of an unpacked extension. |
+ DOMString? path; |
+ |
+ // Options settings page for the item. |
+ DOMString optionsUrl; |
+ DOMString appLaunchUrl; |
+ DOMString? homepageUrl; |
+ DOMString? updateUrl; |
+ boolean offlineEnabled; |
+ |
+ // All views of the current extension. |
+ ItemInspectView[] views; |
+ }; |
+ |
+ dictionary InspectOptions { |
+ DOMString extensionId; |
+ DOMString renderProcessId; |
+ DOMString renderViewId; |
+ boolean incognito; |
asargent_no_longer_on_chrome
2012/11/30 22:56:02
Are extensionId and incognito really needed here?
Gaurav
2012/11/30 23:32:42
We use extensionId and incognito for lazy backgrou
|
+ }; |
+ |
+ callback BooleanCallback = void (boolean result); |
+ callback ItemsInfoCallback = void (ItemInfo[] result); |
+ |
+ interface Functions { |
+ // Runs autoUpdate immediately. |
+ // |callback| : Called with the boolean result. |
+ static void autoUpdate(BooleanCallback callback); |
+ |
+ // Returns information of all the extensions and apps installed. |
+ // |callback| : Called with items info. |
+ static void getItemsInfo(ItemsInfoCallback callback); |
+ |
+ // Opens an inspect window for given |inspectOptions| |
+ static void inspect(InspectOptions options, |
+ BooleanCallback callback); |
+ }; |
+ |
+}; |