Chromium Code Reviews| Index: chrome/common/extensions/api/developer_private.idl |
| diff --git a/chrome/common/extensions/api/developer_private.idl b/chrome/common/extensions/api/developer_private.idl |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..28234fce2397894137175d5a61a0f40cc04bcdb2 |
| --- /dev/null |
| +++ b/chrome/common/extensions/api/developer_private.idl |
| @@ -0,0 +1,80 @@ |
| +// 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. |
| + |
| +// developerPrivate API. |
| + |
| +namespace developerPrivate { |
|
miket_OOO
2012/12/06 19:31:15
There could be much better documentation in this f
|
| + |
| + enum ItemType { |
| + hosted_app, |
| + packaged_app, |
|
miket_OOO
2012/12/06 19:31:15
why the different naming style?
Gaurav
2012/12/12 02:23:38
the code generator for API's generates code as NAM
|
| + legacy_packaged_app, |
| + extension, |
| + theme |
| + }; |
| + |
| + 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; |
| + ItemType 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; |
| + }; |
| + |
| + callback BooleanCallback = void (boolean result); |
| + callback ItemsInfoCallback = void (ItemInfo[] result); |
| + |
| + interface Functions { |
| + // Runs autoUpdate immediately. |
|
miket_OOO
2012/12/06 19:31:15
no internal capitalization
Gaurav
2012/12/12 02:23:38
Done.
|
| + // |callback| : Called with the boolean result. |
|
miket_OOO
2012/12/06 19:31:15
this comment adds no information.
Gaurav
2012/12/12 02:23:38
Done.
|
| + 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); |
| + }; |
| + |
| +}; |