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

Unified Diff: ui/file_manager/audio_player/elements/track_list.html

Issue 1176483002: AudioPlayer.app: Migrate to Polymer 1.0. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use $ for access child elements consistently. Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: ui/file_manager/audio_player/elements/track_list.html
diff --git a/ui/file_manager/audio_player/elements/track_list.html b/ui/file_manager/audio_player/elements/track_list.html
index eeeff3a32fd59a4bc36c505f55e85d8cafae0019..b31e45fd0e8bf9d6a7ed40abdf1173b9ee5928da 100644
--- a/ui/file_manager/audio_player/elements/track_list.html
+++ b/ui/file_manager/audio_player/elements/track_list.html
@@ -4,20 +4,20 @@
-- found in the LICENSE file.
-->
-<link rel="import" href="chrome://resources/polymer/polymer/polymer.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html">
-<polymer-element name="track-list" attributes="tracks">
+<dom-module id="track-list">
+ <link rel="import" type="css" href="track_list.css">
<template>
- <link rel="stylesheet" href="track_list.css">
-
- <template id="tracks" repeat="{{track, index in tracks}}">
- <div class="track" active?="{{track.active}}" index="{{index}}" on-click="{{trackClicked}}">
+ <template is="dom-repeat" id="tracks" items="[[tracks]]">
+ <div class="track" active$="[[item.active]]" index$="[[index]]" on-click="trackClicked">
<div class="data">
- <div class="data-title">{{track.title}}</div>
- <div class="data-artist">{{track.artist}}</div>
+ <div class="data-title">[[item.title]]</div>
+ <div class="data-artist">[[item.artist]]</div>
</div>
</div>
</template>
</template>
- <script src="track_list.js"></script>
-</polymer-element>
+</dom-module>
+
+<script src="track_list.js"></script>

Powered by Google App Engine
This is Rietveld 408576698