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

Side by Side Diff: Source/devtools/front_end/sdk/InspectorBackend.js

Issue 423673004: [DevTools] Switch from separate sendMessageToBackend method to using embedder. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 595 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 } 606 }
607 607
608 InspectorBackendClass.MainConnection.prototype = { 608 InspectorBackendClass.MainConnection.prototype = {
609 609
610 /** 610 /**
611 * @param {!Object} messageObject 611 * @param {!Object} messageObject
612 */ 612 */
613 sendMessage: function(messageObject) 613 sendMessage: function(messageObject)
614 { 614 {
615 var message = JSON.stringify(messageObject); 615 var message = JSON.stringify(messageObject);
616 InspectorFrontendHost.sendMessageToBackend(message); 616 InspectorFrontendHost.sendMessageToBrowser(message);
617 }, 617 },
618 618
619 /** 619 /**
620 * @param {!WebInspector.Event} event 620 * @param {!WebInspector.Event} event
621 */ 621 */
622 _dispatchMessage: function(event) 622 _dispatchMessage: function(event)
623 { 623 {
624 this.dispatch(/** @type {!Object|string} */ (event.data)); 624 this.dispatch(/** @type {!Object|string} */ (event.data));
625 }, 625 },
626 626
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
922 922
923 } 923 }
924 924
925 InspectorBackendClass.Options = { 925 InspectorBackendClass.Options = {
926 dumpInspectorTimeStats: false, 926 dumpInspectorTimeStats: false,
927 dumpInspectorProtocolMessages: false, 927 dumpInspectorProtocolMessages: false,
928 suppressRequestErrors: false 928 suppressRequestErrors: false
929 } 929 }
930 930
931 InspectorBackend = new InspectorBackendClass(); 931 InspectorBackend = new InspectorBackendClass();
OLDNEW
« no previous file with comments | « Source/devtools/front_end/host/InspectorFrontendHost.js ('k') | Source/devtools/front_end/sdk/WorkerManager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698