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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/ui_lazy/TimelineOverviewPane.js

Issue 1427823002: DevTools: Grey out outside parts of selection window on timeline overview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: refactor Created 5 years, 1 month 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 continue; 265 continue;
266 filteredMarkers.set(position, marker); 266 filteredMarkers.set(position, marker);
267 marker.style.left = position + "px"; 267 marker.style.left = position + "px";
268 } 268 }
269 this._overviewGrid.removeEventDividers(); 269 this._overviewGrid.removeEventDividers();
270 this._overviewGrid.addEventDividers(filteredMarkers.valuesArray()); 270 this._overviewGrid.addEventDividers(filteredMarkers.valuesArray());
271 }, 271 },
272 272
273 reset: function() 273 reset: function()
274 { 274 {
275 this._windowStartTime = 0;
276 this._windowEndTime = Infinity;
275 this._overviewCalculator.reset(); 277 this._overviewCalculator.reset();
276 this._overviewGrid.reset(); 278 this._overviewGrid.reset();
277 this._overviewGrid.setResizeEnabled(false); 279 this._overviewGrid.setResizeEnabled(false);
278 this._overviewGrid.updateDividers(this._overviewCalculator); 280 this._overviewGrid.updateDividers(this._overviewCalculator);
279 this._cursorEnabled = false; 281 this._cursorEnabled = false;
280 this._hideCursor(); 282 this._hideCursor();
281 this._markers = new Map(); 283 this._markers = new Map();
282 for (var i = 0; i < this._overviewControls.length; ++i) 284 for (var i = 0; i < this._overviewControls.length; ++i)
283 this._overviewControls[i].reset(); 285 this._overviewControls[i].reset();
284 this._popoverHelper.hidePopover(); 286 this._popoverHelper.hidePopover();
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 }, 634 },
633 635
634 resetCanvas: function() 636 resetCanvas: function()
635 { 637 {
636 this._canvas.width = this.element.clientWidth * window.devicePixelRatio; 638 this._canvas.width = this.element.clientWidth * window.devicePixelRatio;
637 this._canvas.height = this.element.clientHeight * window.devicePixelRati o; 639 this._canvas.height = this.element.clientHeight * window.devicePixelRati o;
638 }, 640 },
639 641
640 __proto__: WebInspector.VBox.prototype 642 __proto__: WebInspector.VBox.prototype
641 } 643 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698