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

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

Issue 1018493002: [Extensions] Combine developerPrivate.inspect and developerPrivate.openDevTools (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 // DEPRECATED: Prefer ExtensionType. 10 // DEPRECATED: Prefer ExtensionType.
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 211
212 // All views of the current extension. 212 // All views of the current extension.
213 ItemInspectView[] views; 213 ItemInspectView[] views;
214 }; 214 };
215 215
216 dictionary GetExtensionsInfoOptions { 216 dictionary GetExtensionsInfoOptions {
217 boolean? includeDisabled; 217 boolean? includeDisabled;
218 boolean? includeTerminated; 218 boolean? includeTerminated;
219 }; 219 };
220 220
221 // TODO(devlin): Combine inspect and openDevTools?
222 dictionary InspectOptions {
223 DOMString extension_id;
224 (DOMString or long) render_process_id;
225 (DOMString or long) render_view_id;
226 boolean incognito;
227 };
228
229 dictionary ReloadOptions { 221 dictionary ReloadOptions {
230 // If false, an alert dialog will show in the event of a reload error. 222 // If false, an alert dialog will show in the event of a reload error.
231 // Defaults to false. 223 // Defaults to false.
232 boolean? failQuietly; 224 boolean? failQuietly;
233 }; 225 };
234 226
235 dictionary LoadUnpackedOptions { 227 dictionary LoadUnpackedOptions {
236 // If false, an alert dialog will show in the event of a reload error. 228 // If false, an alert dialog will show in the event of a reload error.
237 // Defaults to false. 229 // Defaults to false.
238 boolean? failQuietly; 230 boolean? failQuietly;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 DOMString afterHighlight; 317 DOMString afterHighlight;
326 318
327 // A title for the file in the form '<extension name>: <file name>'. 319 // A title for the file in the form '<extension name>: <file name>'.
328 DOMString title; 320 DOMString title;
329 321
330 // The error message. 322 // The error message.
331 DOMString message; 323 DOMString message;
332 }; 324 };
333 325
334 dictionary OpenDevToolsProperties { 326 dictionary OpenDevToolsProperties {
327 DOMString? extensionId;
not at google - send to devlin 2015/03/19 18:52:49 Comment here and below, e.g. what happens if it's
Devlin 2015/03/19 20:27:33 Done.
328
335 // The ID of the render view in which the error occurred. 329 // The ID of the render view in which the error occurred.
336 long renderViewId; 330 long renderViewId;
337 331
338 // The ID of the process in which the error occurred. 332 // The ID of the process in which the error occurred.
339 long renderProcessId; 333 long renderProcessId;
340 334
335 boolean? incognito;
336
341 // The URL in which the error occurred. 337 // The URL in which the error occurred.
342 DOMString? url; 338 DOMString? url;
343 339
344 // The line to focus the devtools at. 340 // The line to focus the devtools at.
345 long? lineNumber; 341 long? lineNumber;
346 342
347 // The column to focus the devtools at. 343 // The column to focus the devtools at.
348 long? columnNumber; 344 long? columnNumber;
349 }; 345 };
350 346
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 // DEPRECATED: Prefer getExtensionsInfo. 381 // DEPRECATED: Prefer getExtensionsInfo.
386 static void getItemsInfo(boolean includeDisabled, 382 static void getItemsInfo(boolean includeDisabled,
387 boolean includeTerminated, 383 boolean includeTerminated,
388 ItemsInfoCallback callback); 384 ItemsInfoCallback callback);
389 385
390 // Opens a permissions dialog. 386 // Opens a permissions dialog.
391 // |extensionId| : The id of the extension to show permissions for. 387 // |extensionId| : The id of the extension to show permissions for.
392 static void showPermissionsDialog(DOMString extensionId, 388 static void showPermissionsDialog(DOMString extensionId,
393 optional VoidCallback callback); 389 optional VoidCallback callback);
394 390
395 // Opens a developer tools inspection window.
396 // |options| : The details about the inspection.
397 static void inspect(InspectOptions options,
398 optional VoidCallback callback);
399
400 // Enables / Disables file access for an extension. 391 // Enables / Disables file access for an extension.
401 // |extensionId| : The id of the extension to set file access for. 392 // |extensionId| : The id of the extension to set file access for.
402 // |allow| : Whether or not to allow file access for the extension. 393 // |allow| : Whether or not to allow file access for the extension.
403 static void allowFileAccess(DOMString extensionId, 394 static void allowFileAccess(DOMString extensionId,
404 boolean allow, 395 boolean allow,
405 optional VoidCallback callback); 396 optional VoidCallback callback);
406 397
407 // Reloads a given extension. 398 // Reloads a given extension.
408 // |extensionId| : The id of the extension to reload. 399 // |extensionId| : The id of the extension to reload.
409 // |options| : Additional configuration parameters. 400 // |options| : Additional configuration parameters.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 441
451 // Returns true if the profile is managed. 442 // Returns true if the profile is managed.
452 static void isProfileManaged(BooleanCallback callback); 443 static void isProfileManaged(BooleanCallback callback);
453 444
454 // Reads and returns the contents of a file related to an extension which 445 // Reads and returns the contents of a file related to an extension which
455 // caused an error. 446 // caused an error.
456 static void requestFileSource(RequestFileSourceProperties properties, 447 static void requestFileSource(RequestFileSourceProperties properties,
457 RequestFileSourceCallback callback); 448 RequestFileSourceCallback callback);
458 449
459 // Open the developer tools to focus on a particular error. 450 // Open the developer tools to focus on a particular error.
460 static void openDevTools(OpenDevToolsProperties properties); 451 static void openDevTools(OpenDevToolsProperties properties,
452 optional VoidCallback callback);
461 }; 453 };
462 454
463 interface Events { 455 interface Events {
464 // Fired when a item state is changed. 456 // Fired when a item state is changed.
465 static void onItemStateChanged(EventData response); 457 static void onItemStateChanged(EventData response);
466 }; 458 };
467 459
468 }; 460 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698