| 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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 showContextMenuAtPoint: function(x, y, items, document) { }, | 268 showContextMenuAtPoint: function(x, y, items, document) { }, |
| 269 | 269 |
| 270 /** | 270 /** |
| 271 * @return {boolean} | 271 * @return {boolean} |
| 272 */ | 272 */ |
| 273 isUnderTest: function() { }, | 273 isUnderTest: function() { }, |
| 274 | 274 |
| 275 /** | 275 /** |
| 276 * @return {boolean} | 276 * @return {boolean} |
| 277 */ | 277 */ |
| 278 isHostedMode: function() { } | 278 isHostedMode: function() { }, |
| 279 |
| 280 /** |
| 281 * @param {string} id |
| 282 */ |
| 283 openWorkerInspector: function(id) { } |
| 279 } | 284 } |
| 280 | 285 |
| 281 /** | 286 /** |
| 282 * @constructor | 287 * @constructor |
| 283 * @implements {InspectorFrontendHostAPI} | 288 * @implements {InspectorFrontendHostAPI} |
| 284 * @suppressGlobalPropertiesCheck | 289 * @suppressGlobalPropertiesCheck |
| 285 */ | 290 */ |
| 286 WebInspector.InspectorFrontendHostStub = function() | 291 WebInspector.InspectorFrontendHostStub = function() |
| 287 { | 292 { |
| 288 /** | 293 /** |
| (...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 611 throw "Soft context menu should be used"; | 616 throw "Soft context menu should be used"; |
| 612 }, | 617 }, |
| 613 | 618 |
| 614 /** | 619 /** |
| 615 * @override | 620 * @override |
| 616 * @return {boolean} | 621 * @return {boolean} |
| 617 */ | 622 */ |
| 618 isHostedMode: function() | 623 isHostedMode: function() |
| 619 { | 624 { |
| 620 return true; | 625 return true; |
| 621 } | 626 }, |
| 627 |
| 628 /** |
| 629 * @override |
| 630 * @param {string} id |
| 631 */ |
| 632 openWorkerInspector: function(id) { } |
| 622 }; | 633 }; |
| 623 | 634 |
| 624 /** | 635 /** |
| 625 * @type {!InspectorFrontendHostAPI} | 636 * @type {!InspectorFrontendHostAPI} |
| 626 */ | 637 */ |
| 627 var InspectorFrontendHost = window.InspectorFrontendHost || null; | 638 var InspectorFrontendHost = window.InspectorFrontendHost || null; |
| 628 | 639 |
| 629 (function(){ | 640 (function(){ |
| 630 | 641 |
| 631 function initializeInspectorFrontendHost() | 642 function initializeInspectorFrontendHost() |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 722 // so the host instance should not initialized there. | 733 // so the host instance should not initialized there. |
| 723 initializeInspectorFrontendHost(); | 734 initializeInspectorFrontendHost(); |
| 724 window.InspectorFrontendAPI = new InspectorFrontendAPIImpl(); | 735 window.InspectorFrontendAPI = new InspectorFrontendAPIImpl(); |
| 725 if (!window.DevToolsHost) { | 736 if (!window.DevToolsHost) { |
| 726 WebInspector.setLocalizationPlatform(InspectorFrontendHost.platform()); | 737 WebInspector.setLocalizationPlatform(InspectorFrontendHost.platform()); |
| 727 } else { | 738 } else { |
| 728 WebInspector.setLocalizationPlatform(DevToolsHost.platform()); | 739 WebInspector.setLocalizationPlatform(DevToolsHost.platform()); |
| 729 } | 740 } |
| 730 | 741 |
| 731 })(); | 742 })(); |
| OLD | NEW |