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/base.js"></script> | 8 <script src="../scripts/base.js"></script> |
| 9 <script src="../scripts/builders.js"></script> | 9 <script src="../scripts/builders.js"></script> |
| 10 <script src="../scripts/config.js"></script> | 10 <script src="../scripts/config.js"></script> |
| 11 <script src="../scripts/model.js"></script> | 11 <script src="../scripts/model.js"></script> |
| 12 <script src="../scripts/net.js"></script> | 12 <script src="../scripts/net.js"></script> |
| 13 <script src="../scripts/results.js"></script> | 13 <script src="../scripts/results.js"></script> |
| 14 <script src="../scripts/svn-log.js"></script> | 14 <script src="../scripts/svn-log.js"></script> |
| 15 <script src="../scripts/treestatus.js"></script> | 15 <script src="../scripts/treestatus.js"></script> |
| 16 <script src="../scripts/ui.js"></script> | 16 <script src="../scripts/ui.js"></script> |
| 17 | 17 |
| 18 <link rel="import" href="../bower_components/core-animated-pages/core-animated-p ages.html"> | 18 <link rel="import" href="../bower_components/core-animated-pages/core-animated-p ages.html"> |
| 19 <link rel="import" href="../bower_components/core-animated-pages/transitions/sli de-from-right.html"> | 19 <link rel="import" href="../bower_components/core-animated-pages/transitions/sli de-from-right.html"> |
| 20 <link rel="import" href="../bower_components/paper-tabs/paper-tab.html"> | |
| 21 <link rel="import" href="../bower_components/paper-tabs/paper-tabs.html"> | |
| 22 <link rel="import" href="ct-results-panel.html"> | 20 <link rel="import" href="ct-results-panel.html"> |
| 23 <link rel="import" href="ct-unexpected-failures.html"> | 21 <link rel="import" href="ct-unexpected-failures.html"> |
| 24 | 22 |
| 25 <polymer-element name="ct-sheriff-o-matic"> | 23 <polymer-element name="ct-sheriff-o-matic"> |
| 26 <template> | 24 <template> |
| 27 <style> | 25 <style> |
| 28 paper-tabs { | 26 :host { |
| 29 background-color: #00bcd4; | 27 display: flex; |
| 30 color: #fff; | 28 flex-direction: column; |
| 31 box-shadow: 0px 3px 2px rgba(0, 0, 0, 0.2); | 29 height: 100%; |
| 30 } | |
| 31 header { | |
| 32 -webkit-user-select: none; | |
|
abarth-chromium
2014/07/21 06:17:37
We really should unprefix this.
ojan
2014/07/21 06:34:31
Yes. There's some incompatibility across browsers,
| |
| 33 align-items: center; | |
| 34 background-color: #212121; | |
| 35 color: white; | |
| 36 cursor: default; | |
| 37 display: flex; | |
| 38 font-size: 1.1em; | |
| 39 } | |
| 40 header a, header span { | |
| 41 color: white; | |
| 42 display: inline-block; | |
| 43 padding: 0.25em 4px; | |
| 44 text-decoration: none; | |
| 45 } | |
| 46 core-animated-pages { | |
| 47 flex: 1; | |
| 32 } | 48 } |
| 33 </style> | 49 </style> |
| 34 <paper-tabs selected="{{selected}}"> | 50 |
| 35 <paper-tab>Unexpected Failures</paper-tab> | 51 <header> |
| 36 <paper-tab>Results</paper-tab> | 52 <template if="{{ selected == 0 }}"> |
| 37 </paper-tabs> | 53 <span><img src="../favicon.ico"> Auto-sheriff-o-maticon</span> |
|
abarth-chromium
2014/07/21 06:17:37
Auto-sheriff-o-maticon ?
ojan
2014/07/21 06:34:31
We haven't figured out whether it will be auto-she
| |
| 38 <core-animated-pages selected="{{selected}}" transitions="slide-from-right"> | 54 </template> |
| 39 <ct-unexpected-failures on-ct-examine-failures="{{onExamine}}"></ct-unexpe cted-failures> | 55 <template if="{{ selected == 1 }}"> |
| 40 <ct-results-panel failures="{{currentFailures}}"></ct-results-panel> | 56 <a on-click="{{ onBack }}"> |
| 57 << Go back | |
| 58 </a> | |
| 59 </template> | |
| 60 </header> | |
| 61 | |
| 62 <core-animated-pages selected="{{ selected }}" transitions="slide-from-right "> | |
| 63 <ct-unexpected-failures on-ct-examine-failures="{{ onExamine }}"></ct-unex pected-failures> | |
| 64 <ct-results-panel failures="{{ currentFailures }}"></ct-results-panel> | |
| 41 </core-animated-pages> | 65 </core-animated-pages> |
| 42 </template> | 66 </template> |
| 43 <script> | 67 <script> |
| 44 Polymer({ | 68 Polymer({ |
| 45 selected: 0, | 69 selected: 0, |
| 46 currentFailures: [], | 70 currentFailures: [], |
| 47 | 71 |
| 72 onBack: function() { | |
| 73 this.selected = 0; | |
| 74 }, | |
| 75 | |
| 48 onExamine: function(event) { | 76 onExamine: function(event) { |
| 49 this.currentFailures = event.detail; | 77 this.currentFailures = event.detail; |
| 50 this.selected = 1; | 78 this.selected = 1; |
| 51 }, | 79 }, |
| 52 }); | 80 }); |
| 53 </script> | 81 </script> |
| 54 </polymer-element> | 82 </polymer-element> |
| OLD | NEW |