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

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

Issue 1275113002: DevTools: Fix timeline overview glimpse on view mode changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 setOverviewControls: function(overviewControls) 188 setOverviewControls: function(overviewControls)
189 { 189 {
190 for (var i = 0; i < this._overviewControls.length; ++i) 190 for (var i = 0; i < this._overviewControls.length; ++i)
191 this._overviewControls[i].dispose(); 191 this._overviewControls[i].dispose();
192 192
193 for (var i = 0; i < overviewControls.length; ++i) { 193 for (var i = 0; i < overviewControls.length; ++i) {
194 overviewControls[i].setCalculator(this._overviewCalculator); 194 overviewControls[i].setCalculator(this._overviewCalculator);
195 overviewControls[i].show(this._overviewGrid.element); 195 overviewControls[i].show(this._overviewGrid.element);
196 } 196 }
197 this._overviewControls = overviewControls; 197 this._overviewControls = overviewControls;
198 this.scheduleUpdate(); 198 this._update();
199 }, 199 },
200 200
201 /** 201 /**
202 * @param {number} minimumBoundary 202 * @param {number} minimumBoundary
203 * @param {number} maximumBoundary 203 * @param {number} maximumBoundary
204 */ 204 */
205 setBounds: function(minimumBoundary, maximumBoundary) 205 setBounds: function(minimumBoundary, maximumBoundary)
206 { 206 {
207 this._overviewCalculator.setBounds(minimumBoundary, maximumBoundary); 207 this._overviewCalculator.setBounds(minimumBoundary, maximumBoundary);
208 this._overviewGrid.setResizeEnabled(true); 208 this._overviewGrid.setResizeEnabled(true);
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 }, 622 },
623 623
624 resetCanvas: function() 624 resetCanvas: function()
625 { 625 {
626 this._canvas.width = this.element.clientWidth * window.devicePixelRatio; 626 this._canvas.width = this.element.clientWidth * window.devicePixelRatio;
627 this._canvas.height = this.element.clientHeight * window.devicePixelRati o; 627 this._canvas.height = this.element.clientHeight * window.devicePixelRati o;
628 }, 628 },
629 629
630 __proto__: WebInspector.VBox.prototype 630 __proto__: WebInspector.VBox.prototype
631 } 631 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698