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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // developerPrivate API.
6 // This is a private API exposing developing and debugging functionalities for
7 // apps and extensions.
8
9 namespace developerPrivate {
10
11 enum ItemType {
12 hosted_app,
13 packaged_app,
14 legacy_packaged_app,
15 extension,
16 theme
17 };
18
19 dictionary ItemInspectView {
20 // path to the inspect page.
21 DOMString path;
22
23 // For lazy background pages, the value is -1.
24 long render_process_id;
25
26 long render_view_id;
27 boolean incognito;
28 };
29
30 dictionary ItemInfo {
31 DOMString id;
32 DOMString name;
33 DOMString version;
34 DOMString description;
35 boolean may_disable;
36 boolean enabled;
37 DOMString? disabled_reason;
38 boolean isApp;
39 ItemType type;
40 boolean allow_activity;
41 boolean allow_file_access;
42 boolean wants_file_access;
43 boolean incognito_enabled;
44 boolean is_unpacked;
45 boolean allow_reload;
46 boolean terminated;
47 boolean allow_incognito;
48 DOMString icon;
49
50 // Path of an unpacked extension.
51 DOMString? path;
52
53 // Options settings page for the item.
54 DOMString? options_url;
55 DOMString? app_launch_url;
56 DOMString? homepage_url;
57 DOMString? update_url;
58 boolean offline_enabled;
59
60 // All views of the current extension.
61 ItemInspectView[] views;
62 };
63
64 dictionary InspectOptions {
65 DOMString extension_id;
66 DOMString render_process_id;
67 DOMString render_view_id;
68 boolean incognito;
69 };
70
71 callback BooleanCallback = void (boolean result);
72 callback ItemsInfoCallback = void (ItemInfo[] result);
73 callback GetStringsCallback = void (object result);
74
75 interface Functions {
76 // Runs auto update for extensions and apps immediately.
77 // |callback| : Called with the boolean result, true if autoUpdate is
78 // successful.
79 static void autoUpdate(BooleanCallback callback);
80
81 // Returns information of all the extensions and apps installed.
82 // |include_disabled| : include disabled items.
83 // |include_terminated| : include terminated items.
84 // |callback| : Called with items info.
85 static void getItemsInfo(boolean include_disabled,
86 boolean include_terminated,
87 ItemsInfoCallback callback);
88
89 // Opens an inspect window for given |options|
90 static void inspect(InspectOptions options,
91 BooleanCallback callback);
92
93 // Enable / Disable file access for a given |itemId|
94 static void allowFileAccess(DOMString itemId,
95 boolean allow,
96 BooleanCallback callback);
97
98 // Reloads a given item with |itemId|.
99 static void reload(DOMString itemId, BooleanCallback callback);
100
101 // Enable / Disable a given item with id |itemId|.
102 static void enable(DOMString itemId,
103 boolean enable,
104 BooleanCallback callback);
105
106 // Load a user selected unpacked item.
107 static void loadUnpacked(BooleanCallback callback);
108
109 // Gets localized translated strings for apps_debugger. It returns the
110 // strings as a dictionary mapping from string identifier to the
111 // translated string to use in the apps_debugger app UI.
112 static void getStrings(GetStringsCallback callback);
113 };
114
115 };
OLDNEW
« 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