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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 showContextMenuAtPoint: function(x, y, items) { }, | 274 showContextMenuAtPoint: function(x, y, items) { }, |
275 | 275 |
276 /** | 276 /** |
277 * @return {boolean} | 277 * @return {boolean} |
278 */ | 278 */ |
279 isUnderTest: function() { }, | 279 isUnderTest: function() { }, |
280 | 280 |
281 /** | 281 /** |
282 * @return {boolean} | 282 * @return {boolean} |
283 */ | 283 */ |
284 isStub: function() { } | 284 isHostedMode: function() { } |
285 } | 285 } |
286 | 286 |
287 /** | 287 /** |
288 * @constructor | 288 * @constructor |
289 * @implements {InspectorFrontendHostAPI} | 289 * @implements {InspectorFrontendHostAPI} |
290 */ | 290 */ |
291 WebInspector.InspectorFrontendHostStub = function() | 291 WebInspector.InspectorFrontendHostStub = function() |
292 { | 292 { |
293 } | 293 } |
294 | 294 |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
582 * @param {!Array.<!InspectorFrontendHostAPI.ContextMenuDescriptor>} items | 582 * @param {!Array.<!InspectorFrontendHostAPI.ContextMenuDescriptor>} items |
583 */ | 583 */ |
584 showContextMenuAtPoint: function(x, y, items) | 584 showContextMenuAtPoint: function(x, y, items) |
585 { | 585 { |
586 throw "Soft context menu should be used"; | 586 throw "Soft context menu should be used"; |
587 }, | 587 }, |
588 | 588 |
589 /** | 589 /** |
590 * @return {boolean} | 590 * @return {boolean} |
591 */ | 591 */ |
592 isStub: function() | 592 isHostedMode: function() |
593 { | 593 { |
594 return true; | 594 return true; |
595 } | 595 } |
596 }; | 596 }; |
597 | 597 |
598 /** | 598 /** |
599 * @type {!InspectorFrontendHostAPI} | 599 * @type {!InspectorFrontendHostAPI} |
600 */ | 600 */ |
601 var InspectorFrontendHost = window.InspectorFrontendHost || null; | 601 var InspectorFrontendHost = window.InspectorFrontendHost || null; |
602 | 602 |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
697 * @param {number} id | 697 * @param {number} id |
698 * @param {?string} error | 698 * @param {?string} error |
699 */ | 699 */ |
700 embedderMessageAck: function(id, error) | 700 embedderMessageAck: function(id, error) |
701 { | 701 { |
702 InspectorFrontendHost["embedderMessageAck"](id, error); | 702 InspectorFrontendHost["embedderMessageAck"](id, error); |
703 } | 703 } |
704 } | 704 } |
705 | 705 |
706 var InspectorFrontendAPI = new InspectorFrontendAPIImpl(); | 706 var InspectorFrontendAPI = new InspectorFrontendAPIImpl(); |
OLD | NEW |