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

Side by Side Diff: tracing/tracing/ui/timeline_track_view.html

Issue 2171013002: [polymer] Delete duplicate selectPowerSamples... method (Closed) Base URL: git@github.com:catapult-project/catapult.git@polymer10-rebase
Patch Set: Created 4 years, 5 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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 Copyright (c) 2012 The Chromium Authors. All rights reserved. 3 Copyright (c) 2012 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be 4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file. 5 found in the LICENSE file.
6 --> 6 -->
7 7
8 <link rel="import" href="/tracing/base/event.html"> 8 <link rel="import" href="/tracing/base/event.html">
9 <link rel="import" href="/tracing/base/iteration_helpers.html"> 9 <link rel="import" href="/tracing/base/iteration_helpers.html">
10 <link rel="import" href="/tracing/base/settings.html"> 10 <link rel="import" href="/tracing/base/settings.html">
(...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 vp.queueDisplayTransformAnimation(animation); 647 vp.queueDisplayTransformAnimation(animation);
648 } else { 648 } else {
649 this.displayTransform_.set(vp.currentDisplayTransform); 649 this.displayTransform_.set(vp.currentDisplayTransform);
650 this.displayTransform_.scaleX *= scale; 650 this.displayTransform_.scaleX *= scale;
651 this.displayTransform_.xPanWorldPosToViewPos( 651 this.displayTransform_.xPanWorldPosToViewPos(
652 goalFocalPointXWorld, goalFocalPointXView, this.viewWidth_); 652 goalFocalPointXWorld, goalFocalPointXView, this.viewWidth_);
653 vp.setDisplayTransformImmediately(this.displayTransform_); 653 vp.setDisplayTransformImmediately(this.displayTransform_);
654 } 654 }
655 }, 655 },
656 656
657 selectPowerSamplesInCurrentTimeRange_: function() {
658 var selectionBounds = this.brushingStateController_.selection.bounds;
659 if (this.model.device.powerSeries && !selectionBounds.empty) {
660 var events = this.model.device.powerSeries.getSamplesWithinRange(
661 selectionBounds.min, selectionBounds.max);
662 var selection = new tr.model.EventSet(events);
663 this.brushingStateController_.changeSelectionFromTimeline(selection);
664 }
665 },
666
667 /** 657 /**
668 * Zoom into the current selection. 658 * Zoom into the current selection.
669 */ 659 */
670 zoomToSelection: function() { 660 zoomToSelection: function() {
671 if (!this.brushingStateController.selectionOfInterest.length) 661 if (!this.brushingStateController.selectionOfInterest.length)
672 return; 662 return;
673 663
674 var bounds = this.brushingStateController.selectionOfInterest.bounds; 664 var bounds = this.brushingStateController.selectionOfInterest.bounds;
675 if (!bounds.range) 665 if (!bounds.range)
676 return; 666 return;
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
1152 Polymer.dom(this.$.hint_text).textContent = text; 1142 Polymer.dom(this.$.hint_text).textContent = text;
1153 this.$.hint_text.style.display = ''; 1143 this.$.hint_text.style.display = '';
1154 }, 1144 },
1155 1145
1156 hideHintText_: function() { 1146 hideHintText_: function() {
1157 this.pendingHintTextClearTimeout_ = undefined; 1147 this.pendingHintTextClearTimeout_ = undefined;
1158 this.$.hint_text.style.display = 'none'; 1148 this.$.hint_text.style.display = 'none';
1159 } 1149 }
1160 }); 1150 });
1161 </script> 1151 </script>
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