OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 13 matching lines...) Expand all Loading... |
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 /** @interface */ | 31 /** @interface */ |
32 function InspectorFrontendHostAPI() | 32 function InspectorFrontendHostAPI() |
33 { | 33 { |
| 34 /** |
| 35 * @type {!WebInspector.EventTarget} |
| 36 */ |
| 37 this.events; |
34 } | 38 } |
35 | 39 |
36 /** @typedef {{type:string, id:(number|undefined), | 40 /** @typedef {{type:string, id:(number|undefined), |
37 label:(string|undefined), enabled:(boolean|undefined), checked:(b
oolean|undefined), | 41 label:(string|undefined), enabled:(boolean|undefined), checked:(b
oolean|undefined), |
38 subItems:(!Array.<!InspectorFrontendHostAPI.ContextMenuDescriptor
>|undefined)}} */ | 42 subItems:(!Array.<!InspectorFrontendHostAPI.ContextMenuDescriptor
>|undefined)}} */ |
39 InspectorFrontendHostAPI.ContextMenuDescriptor; | 43 InspectorFrontendHostAPI.ContextMenuDescriptor; |
40 | 44 |
41 InspectorFrontendHostAPI.Events = { | 45 InspectorFrontendHostAPI.Events = { |
42 AppendedToURL: "appendedToURL", | 46 AppendedToURL: "appendedToURL", |
43 CanceledSaveURL: "canceledSaveURL", | 47 CanceledSaveURL: "canceledSaveURL", |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 zoomIn: function() { }, | 271 zoomIn: function() { }, |
268 | 272 |
269 zoomOut: function() { }, | 273 zoomOut: function() { }, |
270 | 274 |
271 resetZoom: function() { }, | 275 resetZoom: function() { }, |
272 | 276 |
273 /** | 277 /** |
274 * @param {number} x | 278 * @param {number} x |
275 * @param {number} y | 279 * @param {number} y |
276 * @param {!Array.<!InspectorFrontendHostAPI.ContextMenuDescriptor>} items | 280 * @param {!Array.<!InspectorFrontendHostAPI.ContextMenuDescriptor>} items |
| 281 * @param {!Document} document |
277 */ | 282 */ |
278 showContextMenuAtPoint: function(x, y, items) { }, | 283 showContextMenuAtPoint: function(x, y, items, document) { }, |
279 | 284 |
280 /** | 285 /** |
281 * @return {boolean} | 286 * @return {boolean} |
282 */ | 287 */ |
283 isUnderTest: function() { }, | 288 isUnderTest: function() { }, |
284 | 289 |
285 /** | 290 /** |
286 * @return {boolean} | 291 * @return {boolean} |
287 */ | 292 */ |
288 isHostedMode: function() { } | 293 isHostedMode: function() { } |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
582 * @param {boolean} enabled | 587 * @param {boolean} enabled |
583 */ | 588 */ |
584 setDevicesUpdatesEnabled: function(enabled) | 589 setDevicesUpdatesEnabled: function(enabled) |
585 { | 590 { |
586 }, | 591 }, |
587 | 592 |
588 /** | 593 /** |
589 * @param {number} x | 594 * @param {number} x |
590 * @param {number} y | 595 * @param {number} y |
591 * @param {!Array.<!InspectorFrontendHostAPI.ContextMenuDescriptor>} items | 596 * @param {!Array.<!InspectorFrontendHostAPI.ContextMenuDescriptor>} items |
| 597 * @param {!Document} document |
592 */ | 598 */ |
593 showContextMenuAtPoint: function(x, y, items) | 599 showContextMenuAtPoint: function(x, y, items, document) |
594 { | 600 { |
595 throw "Soft context menu should be used"; | 601 throw "Soft context menu should be used"; |
596 }, | 602 }, |
597 | 603 |
598 /** | 604 /** |
599 * @return {boolean} | 605 * @return {boolean} |
600 */ | 606 */ |
601 isHostedMode: function() | 607 isHostedMode: function() |
602 { | 608 { |
603 return true; | 609 return true; |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
684 * @param {number} id | 690 * @param {number} id |
685 * @param {?string} error | 691 * @param {?string} error |
686 */ | 692 */ |
687 embedderMessageAck: function(id, error) | 693 embedderMessageAck: function(id, error) |
688 { | 694 { |
689 InspectorFrontendHost["embedderMessageAck"](id, error); | 695 InspectorFrontendHost["embedderMessageAck"](id, error); |
690 } | 696 } |
691 } | 697 } |
692 | 698 |
693 var InspectorFrontendAPI = new InspectorFrontendAPIImpl(); | 699 var InspectorFrontendAPI = new InspectorFrontendAPIImpl(); |
OLD | NEW |