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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js

Issue 2781193002: DevTools: Adopt nbsp as unit & thousands separator for broader font support (Closed)
Patch Set: update all uses of thinsp. rebaseline tests. Created 3 years, 8 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2012 Intel Inc. All rights reserved. 3 * Copyright (C) 2012 Intel 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 are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * 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 1233 matching lines...) Expand 10 before | Expand all | Expand 10 after
1244 delete this._timeUpdateTimer; 1244 delete this._timeUpdateTimer;
1245 } 1245 }
1246 1246
1247 /** 1247 /**
1248 * @param {boolean=} precise 1248 * @param {boolean=} precise
1249 */ 1249 */
1250 _updateTimer(precise) { 1250 _updateTimer(precise) {
1251 if (!this._timeUpdateTimer) 1251 if (!this._timeUpdateTimer)
1252 return; 1252 return;
1253 var elapsed = (Date.now() - this._startTime) / 1000; 1253 var elapsed = (Date.now() - this._startTime) / 1000;
1254 this._time.textContent = Common.UIString('%s\u2009sec', elapsed.toFixed(prec ise ? 1 : 0)); 1254 this._time.textContent = Common.UIString('%s\xa0sec', elapsed.toFixed(precis e ? 1 : 0));
1255 } 1255 }
1256 }; 1256 };
1257 1257
1258 1258
1259 /** 1259 /**
1260 * @implements {Common.QueryParamHandler} 1260 * @implements {Common.QueryParamHandler}
1261 * @unrestricted 1261 * @unrestricted
1262 */ 1262 */
1263 Timeline.LoadTimelineHandler = class { 1263 Timeline.LoadTimelineHandler = class {
1264 /** 1264 /**
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
1301 return true; 1301 return true;
1302 case 'timeline.jump-to-next-frame': 1302 case 'timeline.jump-to-next-frame':
1303 panel._jumpToFrame(1); 1303 panel._jumpToFrame(1);
1304 return true; 1304 return true;
1305 } 1305 }
1306 return false; 1306 return false;
1307 } 1307 }
1308 }; 1308 };
1309 1309
1310 Timeline.TimelinePanel._traceProviderSettingSymbol = Symbol('traceProviderSettin g'); 1310 Timeline.TimelinePanel._traceProviderSettingSymbol = Symbol('traceProviderSettin g');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698