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 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
442 */ | 442 */ |
443 isHostedMode: function() | 443 isHostedMode: function() |
444 { | 444 { |
445 return true; | 445 return true; |
446 } | 446 } |
447 }; | 447 }; |
448 | 448 |
449 /** | 449 /** |
450 * @type {!InspectorFrontendHostAPI} | 450 * @type {!InspectorFrontendHostAPI} |
451 */ | 451 */ |
452 window.InspectorFrontendHost = window.InspectorFrontendHost || null; | 452 var InspectorFrontendHost = window.InspectorFrontendHost = window.InspectorFront endHost || null; |
lushnikov
2016/07/20 21:37:52
let's assign it to window separately
| |
453 | 453 |
454 (function(){ | 454 (function(){ |
455 | 455 |
456 function initializeInspectorFrontendHost() | 456 function initializeInspectorFrontendHost() |
457 { | 457 { |
458 if (!InspectorFrontendHost) { | 458 if (!InspectorFrontendHost) { |
459 // Instantiate stub for web-hosted mode if necessary. | 459 // Instantiate stub for web-hosted mode if necessary. |
460 InspectorFrontendHost = new WebInspector.InspectorFrontendHostStub() ; | 460 InspectorFrontendHost = new WebInspector.InspectorFrontendHostStub() ; |
461 } else { | 461 } else { |
462 // Otherwise add stubs for missing methods that are declared in the interface. | 462 // Otherwise add stubs for missing methods that are declared in the interface. |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
548 // so the host instance should not initialized there. | 548 // so the host instance should not initialized there. |
549 initializeInspectorFrontendHost(); | 549 initializeInspectorFrontendHost(); |
550 window.InspectorFrontendAPI = new InspectorFrontendAPIImpl(); | 550 window.InspectorFrontendAPI = new InspectorFrontendAPIImpl(); |
551 WebInspector.setLocalizationPlatform(InspectorFrontendHost.platform()); | 551 WebInspector.setLocalizationPlatform(InspectorFrontendHost.platform()); |
552 })(); | 552 })(); |
553 | 553 |
554 /** | 554 /** |
555 * @type {!WebInspector.EventTarget} | 555 * @type {!WebInspector.EventTarget} |
556 */ | 556 */ |
557 InspectorFrontendHost.events; | 557 InspectorFrontendHost.events; |
OLD | NEW |