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

Side by Side Diff: Tools/GardeningServer/ui/ct-sheriff-o-matic.html

Issue 476903004: [sheriff-o-matic]: Basic trooper display for sheriff-o-matic. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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
OLDNEW
1 <!-- 1 <!--
2 Copyright 2014 The Chromium Authors. All rights reserved. 2 Copyright 2014 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be 3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file. 4 found in the LICENSE file.
5 --> 5 -->
6 6
7 <link rel="import" href="../lib/sugar.html"> 7 <link rel="import" href="../lib/sugar.html">
8 <script src="../scripts/results.js"></script> 8 <script src="../scripts/results.js"></script>
9 9
10 <link rel="import" href="../bower_components/core-animated-pages/core-animated-p ages.html"> 10 <link rel="import" href="../bower_components/core-animated-pages/core-animated-p ages.html">
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 }, 105 },
106 106
107 onBack: function(event) { 107 onBack: function(event) {
108 if (event.button == 0) { 108 if (event.button == 0) {
109 window.history.back(); 109 window.history.back();
110 event.preventDefault(); 110 event.preventDefault();
111 } 111 }
112 }, 112 },
113 113
114 onExamine: function(event) { 114 onExamine: function(event) {
115 var dataToExamine = event.detail.dataToExamine();
115 window.history.pushState({ 116 window.history.pushState({
116 currentFailures: event.detail.failures, 117 currentFailures: dataToExamine,
117 selected: 1, 118 selected: 1,
118 }); 119 });
119 120
120 this.currentFailures = event.detail.failures; 121
122 this.currentFailures = dataToExamine;
121 this.selected = 1; 123 this.selected = 1;
122 }, 124 },
123 125
124 created: function() { 126 created: function() {
125 this.treeList = new CTTreeList(); 127 this.treeList = new CTTreeList();
126 this.tree = this.treeList.defaultValue(); 128 this.tree = this.treeList.defaultValue();
127 this.commitLog = new CTCommitLog(); 129 this.commitLog = new CTCommitLog();
128 this.failures = new CTFailures(this.commitLog); 130 this.failures = new CTFailures(this.commitLog);
129 this._updater = new CTScheduledUpdater(this.update.bind(this), kUpdateFr equency); 131 this._updater = new CTScheduledUpdater(this.update.bind(this), kUpdateFr equency);
130 132
(...skipping 23 matching lines...) Expand all
154 // FIXME: These shouldn't update if there's already an update in 156 // FIXME: These shouldn't update if there's already an update in
155 // progress. 157 // progress.
156 this.commitLog.update(); 158 this.commitLog.update();
157 this.failures.update(); 159 this.failures.update();
158 this.$.unexpected.update(); 160 this.$.unexpected.update();
159 }, 161 },
160 162
161 }); 163 });
162 </script> 164 </script>
163 </polymer-element> 165 </polymer-element>
OLDNEW
« no previous file with comments | « Tools/GardeningServer/ui/ct-results-panel.html ('k') | Tools/GardeningServer/ui/ct-trooper-card.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698