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

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

Issue 1284963003: Merge 200187 "DevTools: Fix timeline overview glimpse on view mo..." (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/2454/
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 | Annotate | Revision Log
« 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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 setOverviewControls: function(overviewControls) 192 setOverviewControls: function(overviewControls)
193 { 193 {
194 for (var i = 0; i < this._overviewControls.length; ++i) 194 for (var i = 0; i < this._overviewControls.length; ++i)
195 this._overviewControls[i].dispose(); 195 this._overviewControls[i].dispose();
196 196
197 for (var i = 0; i < overviewControls.length; ++i) { 197 for (var i = 0; i < overviewControls.length; ++i) {
198 overviewControls[i].setCalculator(this._overviewCalculator); 198 overviewControls[i].setCalculator(this._overviewCalculator);
199 overviewControls[i].show(this._overviewGrid.element); 199 overviewControls[i].show(this._overviewGrid.element);
200 } 200 }
201 this._overviewControls = overviewControls; 201 this._overviewControls = overviewControls;
202 this.scheduleUpdate(); 202 this._update();
203 }, 203 },
204 204
205 /** 205 /**
206 * @param {number} minimumBoundary 206 * @param {number} minimumBoundary
207 * @param {number} maximumBoundary 207 * @param {number} maximumBoundary
208 */ 208 */
209 setBounds: function(minimumBoundary, maximumBoundary) 209 setBounds: function(minimumBoundary, maximumBoundary)
210 { 210 {
211 this._overviewCalculator.setBounds(minimumBoundary, maximumBoundary); 211 this._overviewCalculator.setBounds(minimumBoundary, maximumBoundary);
212 this._overviewGrid.setResizeEnabled(true); 212 this._overviewGrid.setResizeEnabled(true);
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 }, 626 },
627 627
628 resetCanvas: function() 628 resetCanvas: function()
629 { 629 {
630 this._canvas.width = this.element.clientWidth * window.devicePixelRatio; 630 this._canvas.width = this.element.clientWidth * window.devicePixelRatio;
631 this._canvas.height = this.element.clientHeight * window.devicePixelRati o; 631 this._canvas.height = this.element.clientHeight * window.devicePixelRati o;
632 }, 632 },
633 633
634 __proto__: WebInspector.VBox.prototype 634 __proto__: WebInspector.VBox.prototype
635 } 635 }
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