| 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..c66616dd4b082e1bf550a8bbaa688d7bd575de6b
|
| --- /dev/null
|
| +++ b/chrome/common/extensions/api/developer_private.idl
|
| @@ -0,0 +1,91 @@
|
| +// 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.
|
| +// This is a private API exposing developing and debugging functionalities for
|
| +// apps and extensions.
|
| +
|
| +namespace developerPrivate {
|
| +
|
| + enum ItemType {
|
| + hosted_app,
|
| + packaged_app,
|
| + legacy_packaged_app,
|
| + extension,
|
| + theme
|
| + };
|
| +
|
| + dictionary ItemInspectView {
|
| + // path to the inspect page.
|
| + DOMString path;
|
| +
|
| + // For lazy background pages, the value is -1.
|
| + long render_process_id;
|
| +
|
| + long render_view_id;
|
| + boolean incognito;
|
| + };
|
| +
|
| + dictionary ItemInfo {
|
| + DOMString id;
|
| + DOMString name;
|
| + DOMString version;
|
| + DOMString description;
|
| + boolean may_disable;
|
| + boolean enabled;
|
| + DOMString? disabled_reason;
|
| + boolean isApp;
|
| + ItemType type;
|
| + boolean allow_activity;
|
| + boolean allow_file_access;
|
| + boolean wants_file_access;
|
| + boolean enabled_incognito;
|
| + boolean is_unpacked;
|
| + boolean allow_reload;
|
| + DOMString icon;
|
| +
|
| + // Path of an unpacked extension.
|
| + DOMString? path;
|
| +
|
| + // Options settings page for the item.
|
| + DOMString? options_url;
|
| + DOMString? app_launch_url;
|
| + DOMString? homepage_url;
|
| + DOMString? update_url;
|
| + boolean offline_enabled;
|
| +
|
| + // All views of the current extension.
|
| + ItemInspectView[] views;
|
| + };
|
| +
|
| + dictionary InspectOptions {
|
| + DOMString extension_id;
|
| + DOMString render_process_id;
|
| + DOMString render_view_id;
|
| + boolean incognito;
|
| + };
|
| +
|
| + callback BooleanCallback = void (boolean result);
|
| + callback ItemsInfoCallback = void (ItemInfo[] result);
|
| +
|
| + interface Functions {
|
| + // Runs auto update for extensions and apps immediately.
|
| + // |callback| : Called with the boolean result, true if autoUpdate is
|
| + // successful.
|
| + static void autoUpdate(BooleanCallback callback);
|
| +
|
| + // Returns information of all the extensions and apps installed.
|
| + // |include_disabled| : include disabled items.
|
| + // |include_terminated| : include terminated items.
|
| + // |callback| : Called with items info.
|
| + static void getItemsInfo(boolean include_disabled,
|
| + boolean include_terminated,
|
| + ItemsInfoCallback callback);
|
| +
|
| + // Opens an inspect window for given |options|
|
| + static void inspect(InspectOptions options,
|
| + BooleanCallback callback);
|
| + };
|
| +
|
| +};
|
|
|