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

Side by Side Diff: Source/devtools/front_end/common/utilities.js

Issue 475233003: DevTools: front-end part of color picker (behind experiment). (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) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2012 Google Inc. All rights reserved.
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 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 leadZero(this.getMonth() + 1) + 386 leadZero(this.getMonth() + 1) +
387 leadZero(this.getDate()) + "T" + 387 leadZero(this.getDate()) + "T" +
388 leadZero(this.getHours()) + 388 leadZero(this.getHours()) +
389 leadZero(this.getMinutes()) + 389 leadZero(this.getMinutes()) +
390 leadZero(this.getSeconds()); 390 leadZero(this.getSeconds());
391 } 391 }
392 392
393 /** 393 /**
394 * @return {string} 394 * @return {string}
395 */ 395 */
396 Date.prototype.toConsoleTime = function() 396 Date.prototype.toConsoleTime = function()
397 { 397 {
398 /** 398 /**
399 * @param {number} x 399 * @param {number} x
400 * @return {string} 400 * @return {string}
401 */ 401 */
402 function leadZero2(x) 402 function leadZero2(x)
403 { 403 {
404 return (x > 9 ? "" : "0") + x; 404 return (x > 9 ? "" : "0") + x;
405 } 405 }
406 406
(...skipping 1349 matching lines...) Expand 10 before | Expand all | Expand 10 after
1756 var cbList = callbacks.slice(); 1756 var cbList = callbacks.slice();
1757 callbacks.length = 0; 1757 callbacks.length = 0;
1758 cbList.forEach(function(callback) { callback(); }); 1758 cbList.forEach(function(callback) { callback(); });
1759 }; 1759 };
1760 return function setImmediate(callback) { 1760 return function setImmediate(callback) {
1761 if (!callbacks.length) 1761 if (!callbacks.length)
1762 new Promise(function(resolve,reject){ resolve(null);}).then(run); 1762 new Promise(function(resolve,reject){ resolve(null);}).then(run);
1763 callbacks.push(callback); 1763 callbacks.push(callback);
1764 }; 1764 };
1765 })(); 1765 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698