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

Side by Side Diff: Source/devtools/front_end/host/InspectorFrontendHost.js

Issue 660503002: Revert of [DevTools] Inject element into toolbox window, do not load modules there. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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
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
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;
38 } 34 }
39 35
40 /** @typedef {{type:string, id:(number|undefined), 36 /** @typedef {{type:string, id:(number|undefined),
41 label:(string|undefined), enabled:(boolean|undefined), checked:(b oolean|undefined), 37 label:(string|undefined), enabled:(boolean|undefined), checked:(b oolean|undefined),
42 subItems:(!Array.<!InspectorFrontendHostAPI.ContextMenuDescriptor >|undefined)}} */ 38 subItems:(!Array.<!InspectorFrontendHostAPI.ContextMenuDescriptor >|undefined)}} */
43 InspectorFrontendHostAPI.ContextMenuDescriptor; 39 InspectorFrontendHostAPI.ContextMenuDescriptor;
44 40
45 InspectorFrontendHostAPI.Events = { 41 InspectorFrontendHostAPI.Events = {
46 AppendedToURL: "appendedToURL", 42 AppendedToURL: "appendedToURL",
47 CanceledSaveURL: "canceledSaveURL", 43 CanceledSaveURL: "canceledSaveURL",
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 zoomIn: function() { }, 265 zoomIn: function() { },
270 266
271 zoomOut: function() { }, 267 zoomOut: function() { },
272 268
273 resetZoom: function() { }, 269 resetZoom: function() { },
274 270
275 /** 271 /**
276 * @param {number} x 272 * @param {number} x
277 * @param {number} y 273 * @param {number} y
278 * @param {!Array.<!InspectorFrontendHostAPI.ContextMenuDescriptor>} items 274 * @param {!Array.<!InspectorFrontendHostAPI.ContextMenuDescriptor>} items
279 * @param {!Window} window
280 */ 275 */
281 showContextMenuAtPoint: function(x, y, items, window) { }, 276 showContextMenuAtPoint: function(x, y, items) { },
282 277
283 /** 278 /**
284 * @return {boolean} 279 * @return {boolean}
285 */ 280 */
286 isUnderTest: function() { }, 281 isUnderTest: function() { },
287 282
288 /** 283 /**
289 * @return {boolean} 284 * @return {boolean}
290 */ 285 */
291 isHostedMode: function() { } 286 isHostedMode: function() { }
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 * @param {boolean} enabled 579 * @param {boolean} enabled
585 */ 580 */
586 setDevicesUpdatesEnabled: function(enabled) 581 setDevicesUpdatesEnabled: function(enabled)
587 { 582 {
588 }, 583 },
589 584
590 /** 585 /**
591 * @param {number} x 586 * @param {number} x
592 * @param {number} y 587 * @param {number} y
593 * @param {!Array.<!InspectorFrontendHostAPI.ContextMenuDescriptor>} items 588 * @param {!Array.<!InspectorFrontendHostAPI.ContextMenuDescriptor>} items
594 * @param {!Window} window
595 */ 589 */
596 showContextMenuAtPoint: function(x, y, items, window) 590 showContextMenuAtPoint: function(x, y, items)
597 { 591 {
598 throw "Soft context menu should be used"; 592 throw "Soft context menu should be used";
599 }, 593 },
600 594
601 /** 595 /**
602 * @return {boolean} 596 * @return {boolean}
603 */ 597 */
604 isHostedMode: function() 598 isHostedMode: function()
605 { 599 {
606 return true; 600 return true;
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
687 * @param {number} id 681 * @param {number} id
688 * @param {?string} error 682 * @param {?string} error
689 */ 683 */
690 embedderMessageAck: function(id, error) 684 embedderMessageAck: function(id, error)
691 { 685 {
692 InspectorFrontendHost["embedderMessageAck"](id, error); 686 InspectorFrontendHost["embedderMessageAck"](id, error);
693 } 687 }
694 } 688 }
695 689
696 var InspectorFrontendAPI = new InspectorFrontendAPIImpl(); 690 var InspectorFrontendAPI = new InspectorFrontendAPIImpl();
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorFrontendHost.idl ('k') | Source/devtools/front_end/main/AdvancedApp.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698