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

Unified Diff: third_party/chrome/idl/developer_private.idl

Issue 12261015: Import chrome idl into third_party (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 | « third_party/chrome/idl/declarative_web_request.json ('k') | third_party/chrome/idl/devtools.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/chrome/idl/developer_private.idl
diff --git a/third_party/chrome/idl/developer_private.idl b/third_party/chrome/idl/developer_private.idl
new file mode 100644
index 0000000000000000000000000000000000000000..bd244af5f5936afbb5bcec9f79e58c5fbcca1315
--- /dev/null
+++ b/third_party/chrome/idl/developer_private.idl
@@ -0,0 +1,115 @@
+// 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 incognito_enabled;
+ boolean is_unpacked;
+ boolean allow_reload;
+ boolean terminated;
+ boolean allow_incognito;
+ 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);
+ callback GetStringsCallback = void (object 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);
+
+ // Enable / Disable file access for a given |itemId|
+ static void allowFileAccess(DOMString itemId,
+ boolean allow,
+ BooleanCallback callback);
+
+ // Reloads a given item with |itemId|.
+ static void reload(DOMString itemId, BooleanCallback callback);
+
+ // Enable / Disable a given item with id |itemId|.
+ static void enable(DOMString itemId,
+ boolean enable,
+ BooleanCallback callback);
+
+ // Load a user selected unpacked item.
+ static void loadUnpacked(BooleanCallback callback);
+
+ // Gets localized translated strings for apps_debugger. It returns the
+ // strings as a dictionary mapping from string identifier to the
+ // translated string to use in the apps_debugger app UI.
+ static void getStrings(GetStringsCallback callback);
+ };
+
+};
« no previous file with comments | « third_party/chrome/idl/declarative_web_request.json ('k') | third_party/chrome/idl/devtools.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698