| OLD | NEW |
| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 DOMString url; | 98 DOMString url; |
| 99 DOMString functionName; | 99 DOMString functionName; |
| 100 }; | 100 }; |
| 101 | 101 |
| 102 dictionary ManifestError { | 102 dictionary ManifestError { |
| 103 ErrorType type; | 103 ErrorType type; |
| 104 DOMString extensionId; | 104 DOMString extensionId; |
| 105 boolean fromIncognito; | 105 boolean fromIncognito; |
| 106 DOMString source; | 106 DOMString source; |
| 107 DOMString message; | 107 DOMString message; |
| 108 long id; |
| 108 DOMString manifestKey; | 109 DOMString manifestKey; |
| 109 DOMString? manifestSpecific; | 110 DOMString? manifestSpecific; |
| 110 }; | 111 }; |
| 111 | 112 |
| 112 dictionary RuntimeError { | 113 dictionary RuntimeError { |
| 113 ErrorType type; | 114 ErrorType type; |
| 114 DOMString extensionId; | 115 DOMString extensionId; |
| 115 boolean fromIncognito; | 116 boolean fromIncognito; |
| 116 DOMString source; | 117 DOMString source; |
| 117 DOMString message; | 118 DOMString message; |
| 119 long id; |
| 118 ErrorLevel severity; | 120 ErrorLevel severity; |
| 119 DOMString contextUrl; | 121 DOMString contextUrl; |
| 120 long occurrences; | 122 long occurrences; |
| 121 long renderViewId; | 123 long renderViewId; |
| 122 long renderProcessId; | 124 long renderProcessId; |
| 123 boolean canInspect; | 125 boolean canInspect; |
| 124 StackFrame[] stackTrace; | 126 StackFrame[] stackTrace; |
| 125 }; | 127 }; |
| 126 | 128 |
| 127 dictionary DisableReasons { | 129 dictionary DisableReasons { |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 | 267 |
| 266 enum EventType { | 268 enum EventType { |
| 267 INSTALLED, | 269 INSTALLED, |
| 268 UNINSTALLED, | 270 UNINSTALLED, |
| 269 LOADED, | 271 LOADED, |
| 270 UNLOADED, | 272 UNLOADED, |
| 271 // New window / view opened. | 273 // New window / view opened. |
| 272 VIEW_REGISTERED, | 274 VIEW_REGISTERED, |
| 273 // window / view closed. | 275 // window / view closed. |
| 274 VIEW_UNREGISTERED, | 276 VIEW_UNREGISTERED, |
| 275 ERROR_ADDED | 277 ERROR_ADDED, |
| 278 ERRORS_REMOVED |
| 276 }; | 279 }; |
| 277 | 280 |
| 278 dictionary PackDirectoryResponse { | 281 dictionary PackDirectoryResponse { |
| 279 // The response message of success or error. | 282 // The response message of success or error. |
| 280 DOMString message; | 283 DOMString message; |
| 281 | 284 |
| 282 // Unpacked items's path. | 285 // Unpacked items's path. |
| 283 DOMString item_path; | 286 DOMString item_path; |
| 284 | 287 |
| 285 // Permanent key path. | 288 // Permanent key path. |
| 286 DOMString pem_path; | 289 DOMString pem_path; |
| 287 | 290 |
| 288 long override_flags; | 291 long override_flags; |
| 289 PackStatus status; | 292 PackStatus status; |
| 290 }; | 293 }; |
| 291 | 294 |
| 292 dictionary ProjectInfo { | 295 dictionary ProjectInfo { |
| 293 DOMString name; | 296 DOMString name; |
| 294 }; | 297 }; |
| 295 | 298 |
| 296 dictionary EventData { | 299 dictionary EventData { |
| 297 EventType event_type; | 300 EventType event_type; |
| 298 DOMString item_id; | 301 DOMString item_id; |
| 302 ExtensionInfo? info; |
| 299 }; | 303 }; |
| 300 | 304 |
| 301 dictionary RequestFileSourceProperties { | 305 dictionary RequestFileSourceProperties { |
| 302 // The ID of the extension owning the file. | 306 // The ID of the extension owning the file. |
| 303 DOMString extensionId; | 307 DOMString extensionId; |
| 304 | 308 |
| 305 // The path of the file, relative to the extension; e.g., manifest.json, | 309 // The path of the file, relative to the extension; e.g., manifest.json, |
| 306 // script.js, or main.html. | 310 // script.js, or main.html. |
| 307 DOMString pathSuffix; | 311 DOMString pathSuffix; |
| 308 | 312 |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 static void inspect(InspectOptions options, | 495 static void inspect(InspectOptions options, |
| 492 optional VoidCallback callback); | 496 optional VoidCallback callback); |
| 493 }; | 497 }; |
| 494 | 498 |
| 495 interface Events { | 499 interface Events { |
| 496 // Fired when a item state is changed. | 500 // Fired when a item state is changed. |
| 497 static void onItemStateChanged(EventData response); | 501 static void onItemStateChanged(EventData response); |
| 498 }; | 502 }; |
| 499 | 503 |
| 500 }; | 504 }; |
| OLD | NEW |