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

Side by Side Diff: chrome/common/extensions/api/developer_private.idl

Issue 150663013: Integrate ErrorConsole with Apps Dev Tool (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove DeveloperPrivate.getStrings() Created 6 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // developerPrivate API. 5 // developerPrivate API.
6 // This is a private API exposing developing and debugging functionalities for 6 // This is a private API exposing developing and debugging functionalities for
7 // apps and extensions. 7 // apps and extensions.
8 namespace developerPrivate { 8 namespace developerPrivate {
9 9
10 enum ItemType { 10 enum ItemType {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 // Path of an unpacked extension. 54 // Path of an unpacked extension.
55 DOMString? path; 55 DOMString? path;
56 56
57 // Options settings page for the item. 57 // Options settings page for the item.
58 DOMString? options_url; 58 DOMString? options_url;
59 DOMString? app_launch_url; 59 DOMString? app_launch_url;
60 DOMString? homepage_url; 60 DOMString? homepage_url;
61 DOMString? update_url; 61 DOMString? update_url;
62 InstallWarning[] install_warnings; 62 InstallWarning[] install_warnings;
63 any[] manifest_errors;
64 any[] runtime_errors;
63 boolean offline_enabled; 65 boolean offline_enabled;
64 66
65 // All views of the current extension. 67 // All views of the current extension.
66 ItemInspectView[] views; 68 ItemInspectView[] views;
67 }; 69 };
68 70
69 dictionary InspectOptions { 71 dictionary InspectOptions {
70 DOMString extension_id; 72 DOMString extension_id;
71 DOMString render_process_id; 73 DOMString render_process_id;
72 DOMString render_view_id; 74 DOMString render_view_id;
(...skipping 17 matching lines...) Expand all
90 }; 92 };
91 93
92 enum EventType { 94 enum EventType {
93 INSTALLED, 95 INSTALLED,
94 UNINSTALLED, 96 UNINSTALLED,
95 LOADED, 97 LOADED,
96 UNLOADED, 98 UNLOADED,
97 // New window / view opened. 99 // New window / view opened.
98 VIEW_REGISTERED, 100 VIEW_REGISTERED,
99 // window / view closed. 101 // window / view closed.
100 VIEW_UNREGISTERED 102 VIEW_UNREGISTERED,
103 ERROR_ADDED
101 }; 104 };
102 105
103 dictionary PackDirectoryResponse { 106 dictionary PackDirectoryResponse {
104 // The response message of success or error. 107 // The response message of success or error.
105 DOMString message; 108 DOMString message;
106 109
107 // Unpacked items's path. 110 // Unpacked items's path.
108 DOMString item_path; 111 DOMString item_path;
109 112
110 // Permanent key path. 113 // Permanent key path.
111 DOMString pem_path; 114 DOMString pem_path;
112 115
113 long override_flags; 116 long override_flags;
114 PackStatus status; 117 PackStatus status;
115 }; 118 };
116 119
117 dictionary ProjectInfo { 120 dictionary ProjectInfo {
118 DOMString name; 121 DOMString name;
119 }; 122 };
120 123
121 dictionary EventData { 124 dictionary EventData {
122 EventType event_type; 125 EventType event_type;
123 DOMString item_id; 126 DOMString item_id;
124 }; 127 };
125 128
126 callback VoidCallback = void (); 129 callback VoidCallback = void ();
127 callback BooleanCallback = void (boolean result); 130 callback BooleanCallback = void (boolean result);
128 callback ItemsInfoCallback = void (ItemInfo[] result); 131 callback ItemsInfoCallback = void (ItemInfo[] result);
129 callback GetStringsCallback = void (object result);
130 callback GetProjectsInfoCallback = void (ProjectInfo[] result); 132 callback GetProjectsInfoCallback = void (ProjectInfo[] result);
131 callback PathCallback = void (DOMString path); 133 callback PathCallback = void (DOMString path);
132 callback PackCallback = void (PackDirectoryResponse response); 134 callback PackCallback = void (PackDirectoryResponse response);
133 callback VoidCallback = void(); 135 callback VoidCallback = void();
136 callback AnyCallback = void (any result);
134 137
135 interface Functions { 138 interface Functions {
136 // Runs auto update for extensions and apps immediately. 139 // Runs auto update for extensions and apps immediately.
137 // |callback| : Called with the boolean result, true if autoUpdate is 140 // |callback| : Called with the boolean result, true if autoUpdate is
138 // successful. 141 // successful.
139 static void autoUpdate(BooleanCallback callback); 142 static void autoUpdate(BooleanCallback callback);
140 143
141 // Returns information of all the extensions and apps installed. 144 // Returns information of all the extensions and apps installed.
142 // |include_disabled| : include disabled items. 145 // |include_disabled| : include disabled items.
143 // |include_terminated| : include terminated items. 146 // |include_terminated| : include terminated items.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 FileType file_type, 191 FileType file_type,
189 PathCallback callback); 192 PathCallback callback);
190 193
191 // Pack an item with given |path| and |private_key_path| 194 // Pack an item with given |path| and |private_key_path|
192 // |callback| : called with the success result string. 195 // |callback| : called with the success result string.
193 static void packDirectory(DOMString path, 196 static void packDirectory(DOMString path,
194 DOMString private_key_path, 197 DOMString private_key_path,
195 long flags, 198 long flags,
196 PackCallback callback); 199 PackCallback callback);
197 200
198 // Gets localized translated strings for apps_debugger. It returns the
199 // strings as a dictionary mapping from string identifier to the
200 // translated string to use in the apps_debugger app UI.
201 static void getStrings(GetStringsCallback callback);
202
203 // Returns true if the profile is managed. 201 // Returns true if the profile is managed.
204 static void isProfileManaged(BooleanCallback callback); 202 static void isProfileManaged(BooleanCallback callback);
203
204 static void requestFileSource(any dict, AnyCallback callback);
205 static void openDevTools(any dict);
Finnur 2014/02/11 13:11:28 Document.
Devlin 2014/02/11 18:41:16 Whoops! Done.
205 }; 206 };
206 207
207 interface Events { 208 interface Events {
208 // Fired when a item state is changed. 209 // Fired when a item state is changed.
209 static void onItemStateChanged(EventData response); 210 static void onItemStateChanged(EventData response);
210 }; 211 };
211 212
212 }; 213 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698