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

Side by Side Diff: Source/devtools/front_end/sdk/WorkerManager.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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 193
194 var message = event.data; 194 var message = event.data;
195 this.dispatch(message); 195 this.dispatch(message);
196 }, 196 },
197 197
198 /** 198 /**
199 * @param {!Object} messageObject 199 * @param {!Object} messageObject
200 */ 200 */
201 sendMessage: function(messageObject) 201 sendMessage: function(messageObject)
202 { 202 {
203 window.opener.postMessage({workerId: this._workerId, command: "sendMessa geToBackend", message: messageObject}, "*"); 203 window.opener.postMessage({workerId: this._workerId, command: "sendMessa geToWorker", message: messageObject}, "*");
204 }, 204 },
205 205
206 __proto__: InspectorBackendClass.Connection.prototype 206 __proto__: InspectorBackendClass.Connection.prototype
207 } 207 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/sdk/InspectorBackend.js ('k') | Source/web/InspectorFrontendClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698