| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/html/polymer.html"> | 1 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 2 <link rel="import" href="chrome://resources/cr_elements/icons.html"> | 2 <link rel="import" href="chrome://resources/cr_elements/icons.html"> |
| 3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm
l"> | 3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm
l"> |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> | 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/color.html
"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/color.html
"> |
| 6 <link rel="import" href="chrome://bookmarks/actions.html"> |
| 6 <link rel="import" href="chrome://bookmarks/icons.html"> | 7 <link rel="import" href="chrome://bookmarks/icons.html"> |
| 7 <link rel="import" href="chrome://bookmarks/shared_style.html"> | 8 <link rel="import" href="chrome://bookmarks/shared_style.html"> |
| 9 <link rel="import" href="chrome://bookmarks/store_client.html"> |
| 8 | 10 |
| 9 <dom-module id="bookmarks-folder-node"> | 11 <dom-module id="bookmarks-folder-node"> |
| 10 <template> | 12 <template> |
| 11 <style include="shared-style"> | 13 <style include="shared-style"> |
| 12 :host { | 14 :host { |
| 13 display: block; | 15 display: block; |
| 14 } | 16 } |
| 15 | 17 |
| 16 .v-centered { | 18 .v-centered { |
| 17 align-items: center; | 19 align-items: center; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 36 -webkit-padding-start: 40.5px; | 38 -webkit-padding-start: 40.5px; |
| 37 } | 39 } |
| 38 | 40 |
| 39 #folder-label { | 41 #folder-label { |
| 40 color: var(--secondary-text-color); | 42 color: var(--secondary-text-color); |
| 41 cursor: pointer; | 43 cursor: pointer; |
| 42 flex-grow: 1; | 44 flex-grow: 1; |
| 43 overflow: hidden; | 45 overflow: hidden; |
| 44 } | 46 } |
| 45 | 47 |
| 46 :host([is-selected-folder]) .menu-label, | 48 :host([is-selected-folder_]) .menu-label, |
| 47 :host([is-selected-folder]) #folder-label { | 49 :host([is-selected-folder_]) #folder-label { |
| 48 color: var(--folder-active-color); | 50 color: var(--folder-active-color); |
| 49 } | 51 } |
| 50 | 52 |
| 51 iron-icon { | 53 iron-icon { |
| 52 --iron-icon-height: 20px; | 54 --iron-icon-height: 20px; |
| 53 --iron-icon-width: 20px; | 55 --iron-icon-width: 20px; |
| 54 min-width: 20px; | 56 min-width: 20px; |
| 55 } | 57 } |
| 56 | 58 |
| 57 paper-icon-button { | 59 paper-icon-button { |
| 58 color: var(--secondary-text-color); | 60 color: var(--secondary-text-color); |
| 59 height: 36px; | 61 height: 36px; |
| 60 min-width: 36px; | 62 min-width: 36px; |
| 61 padding: 8px; | 63 padding: 8px; |
| 62 width: 36px; | 64 width: 36px; |
| 63 } | 65 } |
| 64 </style> | 66 </style> |
| 65 | 67 |
| 66 <div id="container" class="v-centered"> | 68 <div id="container" class="v-centered"> |
| 67 <div id="folder-label" class="v-centered" on-tap="selectFolder_"> | 69 <div id="folder-label" class="v-centered" on-tap="selectFolder_"> |
| 68 <iron-icon icon="[[getFolderIcon_(isSelectedFolder)]]"></iron-icon> | 70 <iron-icon icon="[[getFolderIcon_(isSelectedFolder_)]]"></iron-icon> |
| 69 <div class="menu-label">[[item.title]]</div> | 71 <div class="menu-label">[[item_.title]]</div> |
| 70 </div> | 72 </div> |
| 71 <template is="dom-if" if="[[hasChildFolder_(item.children)]]"> | 73 <template is="dom-if" if="[[hasChildFolder_(item_.children)]]"> |
| 72 <paper-icon-button icon="[[getArrowIcon_(item.isOpen)]]" | 74 <paper-icon-button icon="[[getArrowIcon_(isClosed_)]]" |
| 73 on-tap="toggleFolder_"></paper-icon-button> | 75 on-tap="toggleFolder_"></paper-icon-button> |
| 74 </template> | 76 </template> |
| 75 </div> | 77 </div> |
| 76 <div id="descendants" hidden$="[[!item.isOpen]]"> | 78 <div id="descendants" hidden$="[[isClosed]]"> |
| 77 <template is="dom-repeat" items="[[item.children]]" | 79 <template is="dom-repeat" |
| 78 filter="isFolder_" observe="url" as="child"> | 80 items="[[item_.children]]" |
| 79 <bookmarks-folder-node item="[[child]]" | 81 as="child" |
| 80 is-selected-folder="[[child.isSelectedFolder]]"> | 82 filter="isFolder_"> |
| 83 <bookmarks-folder-node item-id="[[child]]"> |
| 81 </bookmarks-folder-node> | 84 </bookmarks-folder-node> |
| 82 </template> | 85 </template> |
| 83 </div> | 86 </div> |
| 84 </template> | 87 </template> |
| 85 <script src="chrome://bookmarks/folder_node.js"></script> | 88 <script src="chrome://bookmarks/folder_node.js"></script> |
| 86 </dom-module> | 89 </dom-module> |
| OLD | NEW |