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

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

Issue 2649023007: DevTools: implement release note behind an experiment (Closed)
Patch Set: fixup Created 3 years, 10 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 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 ConsoleAPI: 'console-api', 477 ConsoleAPI: 'console-api',
478 Storage: 'storage', 478 Storage: 'storage',
479 AppCache: 'appcache', 479 AppCache: 'appcache',
480 Rendering: 'rendering', 480 Rendering: 'rendering',
481 CSS: 'css', 481 CSS: 'css',
482 Security: 'security', 482 Security: 'security',
483 Deprecation: 'deprecation', 483 Deprecation: 'deprecation',
484 Worker: 'worker', 484 Worker: 'worker',
485 Violation: 'violation', 485 Violation: 'violation',
486 Intervention: 'intervention', 486 Intervention: 'intervention',
487 Other: 'other' 487 Other: 'other',
luoe 2017/02/11 00:30:54 nit: commas at the end of the last entry should be
488 }; 488 };
489 489
490 /** 490 /**
491 * @enum {string} 491 * @enum {string}
492 */ 492 */
493 SDK.ConsoleMessage.MessageType = { 493 SDK.ConsoleMessage.MessageType = {
494 Log: 'log', 494 Log: 'log',
495 Debug: 'debug', 495 Debug: 'debug',
496 Info: 'info', 496 Info: 'info',
497 Error: 'error', 497 Error: 'error',
(...skipping 13 matching lines...) Expand all
511 Command: 'command' 511 Command: 'command'
512 }; 512 };
513 513
514 /** 514 /**
515 * @enum {string} 515 * @enum {string}
516 */ 516 */
517 SDK.ConsoleMessage.MessageLevel = { 517 SDK.ConsoleMessage.MessageLevel = {
518 Verbose: 'verbose', 518 Verbose: 'verbose',
519 Info: 'info', 519 Info: 'info',
520 Warning: 'warning', 520 Warning: 'warning',
521 Error: 'error' 521 Error: 'error',
522 Note: 'note',
luoe 2017/02/11 00:30:54 I don't like how making release-notes a ConsoleVie
522 }; 523 };
523 524
524 /** 525 /**
525 * @param {!SDK.ConsoleMessage.MessageLevel} level 526 * @param {!SDK.ConsoleMessage.MessageLevel} level
526 * @return {number} 527 * @return {number}
527 */ 528 */
528 SDK.ConsoleMessage.MessageLevel.ordinal = function(level) { 529 SDK.ConsoleMessage.MessageLevel.ordinal = function(level) {
529 if (level === SDK.ConsoleMessage.MessageLevel.Verbose) 530 if (level === SDK.ConsoleMessage.MessageLevel.Verbose)
530 return 0; 531 return 0;
531 if (level === SDK.ConsoleMessage.MessageLevel.Info) 532 if (level === SDK.ConsoleMessage.MessageLevel.Info)
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 */ 633 */
633 _commandEvaluated(event) { 634 _commandEvaluated(event) {
634 this.dispatchEventToListeners(SDK.ConsoleModel.Events.CommandEvaluated, even t.data); 635 this.dispatchEventToListeners(SDK.ConsoleModel.Events.CommandEvaluated, even t.data);
635 } 636 }
636 }; 637 };
637 638
638 /** 639 /**
639 * @type {!SDK.MultitargetConsoleModel} 640 * @type {!SDK.MultitargetConsoleModel}
640 */ 641 */
641 SDK.multitargetConsoleModel; 642 SDK.multitargetConsoleModel;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698