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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js

Issue 2419943003: DevTools: allow handing over the raw protocol connection to external clients and back. (Closed)
Patch Set: rebaselined Created 4 years, 2 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Joseph Pecoraro 3 * Copyright (C) 2009 Joseph Pecoraro
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 return 16; 251 return 16;
252 }, 252 },
253 253
254 /** 254 /**
255 * @override 255 * @override
256 * @param {!WebInspector.Target} target 256 * @param {!WebInspector.Target} target
257 */ 257 */
258 targetAdded: function(target) 258 targetAdded: function(target)
259 { 259 {
260 this._viewport.invalidate(); 260 this._viewport.invalidate();
261 var hasMultipleCotexts = WebInspector.targetManager.targets(WebInspector .Target.Capability.JS).length > 1; 261 this._updateAllMessagesCheckbox();
262 this._showAllMessagesCheckbox.element.classList.toggle("hidden", !hasMul tipleCotexts);
263 }, 262 },
264 263
265 /** 264 /**
266 * @override 265 * @override
267 * @param {!WebInspector.Target} target 266 * @param {!WebInspector.Target} target
268 */ 267 */
269 targetRemoved: function(target) 268 targetRemoved: function(target)
270 { 269 {
270 this._updateAllMessagesCheckbox();
271 },
272
273 _updateAllMessagesCheckbox: function()
274 {
275 var hasMultipleCotexts = WebInspector.targetManager.targets(WebInspector .Target.Capability.JS).length > 1;
276 this._showAllMessagesCheckbox.element.classList.toggle("hidden", !hasMul tipleCotexts);
271 }, 277 },
272 278
273 _registerWithMessageSink: function() 279 _registerWithMessageSink: function()
274 { 280 {
275 WebInspector.console.messages().forEach(this._addSinkMessage, this); 281 WebInspector.console.messages().forEach(this._addSinkMessage, this);
276 WebInspector.console.addEventListener(WebInspector.Console.Events.Messag eAdded, messageAdded, this); 282 WebInspector.console.addEventListener(WebInspector.Console.Events.Messag eAdded, messageAdded, this);
277 283
278 /** 284 /**
279 * @param {!WebInspector.Event} event 285 * @param {!WebInspector.Event} event
280 * @this {WebInspector.ConsoleView} 286 * @this {WebInspector.ConsoleView}
(...skipping 1083 matching lines...) Expand 10 before | Expand all | Expand 10 after
1364 return true; 1370 return true;
1365 } 1371 }
1366 return false; 1372 return false;
1367 } 1373 }
1368 } 1374 }
1369 1375
1370 /** 1376 /**
1371 * @typedef {{messageIndex: number, matchIndex: number}} 1377 * @typedef {{messageIndex: number, matchIndex: number}}
1372 */ 1378 */
1373 WebInspector.ConsoleView.RegexMatchRange; 1379 WebInspector.ConsoleView.RegexMatchRange;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698