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

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

Issue 2139543002: [DevTools] Report console API calls through Runtime. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 5 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) 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 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 Other: "other", 473 Other: "other",
474 Deprecation: "deprecation", 474 Deprecation: "deprecation",
475 Worker: "worker" 475 Worker: "worker"
476 } 476 }
477 477
478 /** 478 /**
479 * @enum {string} 479 * @enum {string}
480 */ 480 */
481 WebInspector.ConsoleMessage.MessageType = { 481 WebInspector.ConsoleMessage.MessageType = {
482 Log: "log", 482 Log: "log",
483 Debug: "debug",
484 Info: "info",
485 Error: "error",
486 Warning: "warning",
483 Dir: "dir", 487 Dir: "dir",
484 DirXML: "dirxml", 488 DirXML: "dirxml",
485 Table: "table", 489 Table: "table",
486 Trace: "trace", 490 Trace: "trace",
487 Clear: "clear", 491 Clear: "clear",
488 StartGroup: "startGroup", 492 StartGroup: "startGroup",
489 StartGroupCollapsed: "startGroupCollapsed", 493 StartGroupCollapsed: "startGroupCollapsed",
490 EndGroup: "endGroup", 494 EndGroup: "endGroup",
491 Assert: "assert", 495 Assert: "assert",
492 Result: "result", 496 Result: "result",
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 this._console = console; 531 this._console = console;
528 } 532 }
529 533
530 WebInspector.ConsoleDispatcher.prototype = { 534 WebInspector.ConsoleDispatcher.prototype = {
531 /** 535 /**
532 * @override 536 * @override
533 * @param {!ConsoleAgent.ConsoleMessage} payload 537 * @param {!ConsoleAgent.ConsoleMessage} payload
534 */ 538 */
535 messageAdded: function(payload) 539 messageAdded: function(payload)
536 { 540 {
541 if (payload.source === WebInspector.ConsoleMessage.MessageSource.Console API)
542 return;
537 var consoleMessage = new WebInspector.ConsoleMessage( 543 var consoleMessage = new WebInspector.ConsoleMessage(
538 this._console.target(), 544 this._console.target(),
539 payload.source, 545 payload.source,
540 payload.level, 546 payload.level,
541 payload.text, 547 payload.text,
542 payload.type, 548 payload.type,
543 payload.url, 549 payload.url,
544 payload.line, 550 payload.line,
545 payload.column, 551 payload.column,
546 payload.networkRequestId, 552 payload.networkRequestId,
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 this.dispatchEventToListeners(WebInspector.ConsoleModel.Events.CommandEv aluated, event.data); 654 this.dispatchEventToListeners(WebInspector.ConsoleModel.Events.CommandEv aluated, event.data);
649 }, 655 },
650 656
651 __proto__: WebInspector.Object.prototype 657 __proto__: WebInspector.Object.prototype
652 } 658 }
653 659
654 /** 660 /**
655 * @type {!WebInspector.MultitargetConsoleModel} 661 * @type {!WebInspector.MultitargetConsoleModel}
656 */ 662 */
657 WebInspector.multitargetConsoleModel; 663 WebInspector.multitargetConsoleModel;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698