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

Side by Side Diff: Source/devtools/front_end/timeline/CountersGraph.js

Issue 1178563002: DevTools: Refactor network panel overview (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update test. Created 5 years, 6 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 } 129 }
130 this.refresh(); 130 this.refresh();
131 }, 131 },
132 132
133 _resize: function() 133 _resize: function()
134 { 134 {
135 var parentElement = this._canvas.parentElement; 135 var parentElement = this._canvas.parentElement;
136 this._canvas.width = parentElement.clientWidth * window.devicePixelRati o; 136 this._canvas.width = parentElement.clientWidth * window.devicePixelRati o;
137 this._canvas.height = parentElement.clientHeight * window.devicePixelRat io; 137 this._canvas.height = parentElement.clientHeight * window.devicePixelRat io;
138 var timelinePaddingLeft = 15; 138 var timelinePaddingLeft = 15;
139 this._calculator.setDisplayWindow(timelinePaddingLeft, this._canvas.widt h); 139 this._calculator.setDisplayWindow(this._canvas.width, timelinePaddingLef t);
140 this.refresh(); 140 this.refresh();
141 }, 141 },
142 142
143 /** 143 /**
144 * @override 144 * @override
145 * @param {number} startTime 145 * @param {number} startTime
146 * @param {number} endTime 146 * @param {number} endTime
147 */ 147 */
148 setWindowTimes: function(startTime, endTime) 148 setWindowTimes: function(startTime, endTime)
149 { 149 {
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
581 }, 581 },
582 582
583 _toggleCheckbox: function(event) 583 _toggleCheckbox: function(event)
584 { 584 {
585 this.checked = !this.checked; 585 this.checked = !this.checked;
586 this.dispatchEventToListeners(WebInspector.SwatchCheckbox.Events.Changed ); 586 this.dispatchEventToListeners(WebInspector.SwatchCheckbox.Events.Changed );
587 }, 587 },
588 588
589 __proto__: WebInspector.Object.prototype 589 __proto__: WebInspector.Object.prototype
590 } 590 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/network/networkPanel.css ('k') | Source/devtools/front_end/timeline/TimelineEventOverview.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698