| OLD | NEW |
| 1 <!-- Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 <!-- Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| 2 Use of this source code is governed by a BSD-style license that can be | 2 Use of this source code is governed by a BSD-style license that can be |
| 3 found in the LICENSE file. --> | 3 found in the LICENSE file. --> |
| 4 | 4 |
| 5 <link rel="import" href="../common/cr-button.html"> |
| 6 <link rel="import" href="../common/cr-toolbar.html"> |
| 5 <link rel="import" href="cr-webcam.html"> | 7 <link rel="import" href="cr-webcam.html"> |
| 6 <link rel="import" href="../components/cr-button.html"> | |
| 7 <link rel="import" href="../components/cr-toolbar.html"> | |
| 8 | 8 |
| 9 <script src="../bower_components/gif.js/dist/gif.js"></script> | 9 <script src="../bower_components/gif.js/dist/gif.js"></script> |
| 10 <script src="gif_recorder.js"></script> | 10 <script src="gif_recorder.js"></script> |
| 11 | 11 |
| 12 <polymer-element name="cr-gif-selfie" attributes="countdown"> | 12 <polymer-element name="cr-gif-selfie" attributes="countdown"> |
| 13 <template> | 13 <template> |
| 14 <link rel="stylesheet" href="../components/common.css"> | 14 <link rel="stylesheet" href="../common/common.css"> |
| 15 <style> | 15 <style> |
| 16 :host { | 16 :host { |
| 17 display: -webkit-flex; | 17 display: -webkit-flex; |
| 18 display: flex; | 18 display: flex; |
| 19 flex-direction: column; | 19 flex-direction: column; |
| 20 -webkit-flex-direction: column; | 20 -webkit-flex-direction: column; |
| 21 } | 21 } |
| 22 | 22 |
| 23 #viewer, | 23 #viewer, |
| 24 #result { | 24 #result { |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 return url; | 188 return url; |
| 189 }).catch(function(e) { | 189 }).catch(function(e) { |
| 190 self.state = ""; | 190 self.state = ""; |
| 191 // TODO(esprehn): Show an error message. | 191 // TODO(esprehn): Show an error message. |
| 192 console.log(e); | 192 console.log(e); |
| 193 }); | 193 }); |
| 194 }, | 194 }, |
| 195 }); | 195 }); |
| 196 </script> | 196 </script> |
| 197 </polymer-element> | 197 </polymer-element> |
| OLD | NEW |