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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/ConsoleModel.js

Issue 2442083002: [DevTools] Merge Worker domain to Target, migrate clients. (Closed)
Patch Set: rebased all tests Created 4 years, 1 month 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
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 WebInspector.ConsoleModel.prototype = { 63 WebInspector.ConsoleModel.prototype = {
64 /** 64 /**
65 * @param {!WebInspector.ConsoleMessage} msg 65 * @param {!WebInspector.ConsoleMessage} msg
66 */ 66 */
67 addMessage: function(msg) 67 addMessage: function(msg)
68 { 68 {
69 if (this._isBlacklisted(msg)) 69 if (this._isBlacklisted(msg))
70 return; 70 return;
71 71
72 if (msg.source === WebInspector.ConsoleMessage.MessageSource.Worker && m sg.target().workerManager && msg.target().workerManager.targetByWorkerId(msg.wor kerId)) 72 if (msg.source === WebInspector.ConsoleMessage.MessageSource.Worker && m sg.target().subTargetsManager && msg.target().subTargetsManager.targetForId(msg. workerId))
73 return; 73 return;
74 74
75 if (msg.source === WebInspector.ConsoleMessage.MessageSource.ConsoleAPI && msg.type === WebInspector.ConsoleMessage.MessageType.Clear) 75 if (msg.source === WebInspector.ConsoleMessage.MessageSource.ConsoleAPI && msg.type === WebInspector.ConsoleMessage.MessageType.Clear)
76 this.clear(); 76 this.clear();
77 77
78 if (msg.level === WebInspector.ConsoleMessage.MessageLevel.RevokedError && msg._revokedExceptionId) { 78 if (msg.level === WebInspector.ConsoleMessage.MessageLevel.RevokedError && msg._revokedExceptionId) {
79 var exceptionMessage = this._messageByExceptionId.get(msg._revokedEx ceptionId); 79 var exceptionMessage = this._messageByExceptionId.get(msg._revokedEx ceptionId);
80 if (!exceptionMessage) 80 if (!exceptionMessage)
81 return; 81 return;
82 this._errors--; 82 this._errors--;
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 this.dispatchEventToListeners(WebInspector.ConsoleModel.Events.CommandEv aluated, event.data); 660 this.dispatchEventToListeners(WebInspector.ConsoleModel.Events.CommandEv aluated, event.data);
661 }, 661 },
662 662
663 __proto__: WebInspector.Object.prototype 663 __proto__: WebInspector.Object.prototype
664 }; 664 };
665 665
666 /** 666 /**
667 * @type {!WebInspector.MultitargetConsoleModel} 667 * @type {!WebInspector.MultitargetConsoleModel}
668 */ 668 */
669 WebInspector.multitargetConsoleModel; 669 WebInspector.multitargetConsoleModel;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698