Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 <script src="../bower_components/sugar/release/sugar-full.development.js"></scri pt> | 7 <script src="../bower_components/sugar/release/sugar-full.development.js"></scri pt> |
| 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 Loading... | |
| 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(); | |
|
ojan
2014/09/04 02:58:43
I'd rather that this code do different things depe
shans
2014/09/05 00:08:20
I'm not sure how this would work with the history
| |
| 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 Loading... | |
| 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> |
| OLD | NEW |