| 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
|
| index f896aee85b76063a10718a828b66e53e558d1215..99158988ee4c7821d58e40bd8fad270635097767 100644
|
| --- a/chrome/common/extensions/api/developer_private.idl
|
| +++ b/chrome/common/extensions/api/developer_private.idl
|
| @@ -68,9 +68,41 @@ namespace developerPrivate {
|
| boolean incognito;
|
| };
|
|
|
| + enum PackStatus {
|
| + SUCCESS,
|
| + ERROR,
|
| + WARNING
|
| + };
|
| +
|
| + enum FileType {
|
| + LOAD,
|
| + PEM
|
| + };
|
| +
|
| + enum SelectType {
|
| + FILE,
|
| + FOLDER
|
| + };
|
| +
|
| + dictionary PackDirectoryResponse {
|
| + // The response message of success or error.
|
| + DOMString message;
|
| +
|
| + // Unpacked items's path.
|
| + DOMString item_path;
|
| +
|
| + // Permanent key path.
|
| + DOMString pem_path;
|
| +
|
| + long override_flags;
|
| + PackStatus status;
|
| + };
|
| +
|
| callback BooleanCallback = void (boolean result);
|
| callback ItemsInfoCallback = void (ItemInfo[] result);
|
| callback GetStringsCallback = void (object result);
|
| + callback PathCallback = void (DOMString path);
|
| + callback PackCallback = void (PackDirectoryResponse response);
|
|
|
| interface Functions {
|
| // Runs auto update for extensions and apps immediately.
|
| @@ -90,25 +122,41 @@ namespace developerPrivate {
|
| static void inspect(InspectOptions options,
|
| BooleanCallback callback);
|
|
|
| - // Enable / Disable file access for a given |itemId|
|
| - static void allowFileAccess(DOMString itemId,
|
| + // Enable / Disable file access for a given |item_id|
|
| + static void allowFileAccess(DOMString item_id,
|
| boolean allow,
|
| BooleanCallback callback);
|
|
|
| - // Reloads a given item with |itemId|
|
| - static void reload(DOMString itemId, BooleanCallback callback);
|
| + // Reloads a given item with |item_id|
|
| + static void reload(DOMString item_id, BooleanCallback callback);
|
|
|
| - // Uninstalls a given item with |itemId|
|
| - static void uninstall(DOMString itemId, BooleanCallback callback);
|
| + // Uninstalls a given item with |item_id|
|
| + static void uninstall(DOMString item_id, BooleanCallback callback);
|
|
|
| - // Enable / Disable a given item with id |itemId|
|
| - static void enable(DOMString itemId,
|
| + // Enable / Disable a given item with id |item_id|
|
| + static void enable(DOMString item_id,
|
| boolean enable,
|
| BooleanCallback callback);
|
|
|
| - // Load a user selected unpacked item.
|
| + // Load a user selected unpacked item
|
| static void loadUnpacked(BooleanCallback callback);
|
|
|
| + // Open Dialog to browse to an entry.
|
| + // |select_type| : Select a file or a folder.
|
| + // |file_type| : Required file type. For Example pem type is for private
|
| + // key and load type is for an unpacked item.
|
| + // |callback| : called with selected item's path.
|
| + static void choosePath(SelectType select_type,
|
| + FileType file_type,
|
| + PathCallback callback);
|
| +
|
| + // Pack an item with given |path| and |private_key_path|
|
| + // |callback| : called with the success result string.
|
| + static void packDirectory(DOMString path,
|
| + DOMString private_key_path,
|
| + long flags,
|
| + PackCallback callback);
|
| +
|
| // Gets localized translated strings for apps_debugger. It returns the
|
| // strings used in apps_debugger app.
|
| static void getStrings(GetStringsCallback callback);
|
|
|