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="cr-patch-file-message.html"> | 5 <link rel="import" href="cr-patch-file-message.html"> |
6 | 6 |
7 <polymer-element name="cr-patch-file-messages" attributes="beforeMessages afterM
essages file"> | 7 <polymer-element name="cr-patch-file-messages" attributes="beforeMessages afterM
essages file"> |
8 <template> | 8 <template> |
9 <link rel="stylesheet" href="common.css"> | 9 <link rel="stylesheet" href="../common/common.css"> |
10 <style> | 10 <style> |
11 :host { | 11 :host { |
12 display: block; | 12 display: block; |
13 } | 13 } |
14 | 14 |
15 cr-patch-file-message { | 15 cr-patch-file-message { |
16 background-color: #ffd; | 16 background-color: #ffd; |
17 border-bottom: 1px solid #dcdcdc; | 17 border-bottom: 1px solid #dcdcdc; |
18 } | 18 } |
19 | 19 |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 this.file.removeMessage(message); | 119 this.file.removeMessage(message); |
120 this.beforeMessages.remove(message); | 120 this.beforeMessages.remove(message); |
121 this.afterMessages.remove(message); | 121 this.afterMessages.remove(message); |
122 // TODO(esprehn): Is there a better way than removing yourself? | 122 // TODO(esprehn): Is there a better way than removing yourself? |
123 if (!this.beforeMessages.length && !this.afterMessages.length) | 123 if (!this.beforeMessages.length && !this.afterMessages.length) |
124 this.remove(); | 124 this.remove(); |
125 }, | 125 }, |
126 }); | 126 }); |
127 </script> | 127 </script> |
128 </polymer-element> | 128 </polymer-element> |
OLD | NEW |