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 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 InspectorFrontendHost.events.dispatchEventToListeners(name,
data); | 530 InspectorFrontendHost.events.dispatchEventToListeners(name,
data); |
531 } catch (e) { | 531 } catch (e) { |
532 console.error(e + " " + e.stack); | 532 console.error(e + " " + e.stack); |
533 } | 533 } |
534 } | 534 } |
535 }, | 535 }, |
536 | 536 |
537 /** | 537 /** |
538 * @param {number} id | 538 * @param {number} id |
539 * @param {string} chunk | 539 * @param {string} chunk |
| 540 * @param {boolean} encoded |
540 */ | 541 */ |
541 streamWrite: function(id, chunk) | 542 streamWrite: function(id, chunk, encoded) |
542 { | 543 { |
543 WebInspector.ResourceLoader.streamWrite(id, chunk); | 544 WebInspector.ResourceLoader.streamWrite(id, chunk, encoded); |
544 } | 545 } |
545 } | 546 } |
546 | 547 |
547 // FIXME: This file is included into both apps, since the devtools_app needs
the InspectorFrontendHostAPI only, | 548 // FIXME: This file is included into both apps, since the devtools_app needs
the InspectorFrontendHostAPI only, |
548 // so the host instance should not initialized there. | 549 // so the host instance should not initialized there. |
549 initializeInspectorFrontendHost(); | 550 initializeInspectorFrontendHost(); |
550 window.InspectorFrontendAPI = new InspectorFrontendAPIImpl(); | 551 window.InspectorFrontendAPI = new InspectorFrontendAPIImpl(); |
551 WebInspector.setLocalizationPlatform(InspectorFrontendHost.platform()); | 552 WebInspector.setLocalizationPlatform(InspectorFrontendHost.platform()); |
552 })(); | 553 })(); |
553 | 554 |
554 /** | 555 /** |
555 * @type {!WebInspector.EventTarget} | 556 * @type {!WebInspector.EventTarget} |
556 */ | 557 */ |
557 InspectorFrontendHost.events; | 558 InspectorFrontendHost.events; |
OLD | NEW |