| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/html/polymer.html"> | 1 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 2 | 2 |
| 3 <link rel="import" href="chrome://resources/cr_elements/icons.html"> | 3 <link rel="import" href="chrome://resources/cr_elements/icons.html"> |
| 4 <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/iron-icon/iron-icon.htm
l"> |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button-light.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button-light.html"> |
| 6 <link rel="import" href="chrome://bookmarks/actions.html"> | 6 <link rel="import" href="chrome://bookmarks/actions.html"> |
| 7 <link rel="import" href="chrome://bookmarks/command_manager.html"> | 7 <link rel="import" href="chrome://bookmarks/command_manager.html"> |
| 8 <link rel="import" href="chrome://bookmarks/icons.html"> | 8 <link rel="import" href="chrome://bookmarks/icons.html"> |
| 9 <link rel="import" href="chrome://bookmarks/mouse_focus_behavior.html"> | 9 <link rel="import" href="chrome://bookmarks/mouse_focus_behavior.html"> |
| 10 <link rel="import" href="chrome://bookmarks/shared_style.html"> | 10 <link rel="import" href="chrome://bookmarks/shared_style.html"> |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 -webkit-padding-start: 52px; /* The width of the arrow and its margin */ | 79 -webkit-padding-start: 52px; /* The width of the arrow and its margin */ |
| 80 } | 80 } |
| 81 </style> | 81 </style> |
| 82 | 82 |
| 83 <div id="container" | 83 <div id="container" |
| 84 class="v-centered" | 84 class="v-centered" |
| 85 draggable="true" | 85 draggable="true" |
| 86 on-tap="selectFolder_" | 86 on-tap="selectFolder_" |
| 87 on-contextmenu="onContextMenu_" | 87 on-contextmenu="onContextMenu_" |
| 88 tabindex$="[[getTabIndex_(isSelectedFolder_)]]" | 88 tabindex$="[[getTabIndex_(isSelectedFolder_)]]" |
| 89 hidden="[[isRootFolder_(depth)]]"> | 89 hidden="[[isRootFolder_(depth)]]" |
| 90 <template is="dom-if" if="[[hasChildFolder_(item_.children)]]"> | 90 role="treeitem"> |
| 91 <template is="dom-if" if="[[hasChildFolder_]]"> |
| 91 <button is="paper-icon-button-light" id="arrow" | 92 <button is="paper-icon-button-light" id="arrow" |
| 92 on-tap="toggleFolder_" on-mousedown="preventDefault_" tabindex="-1"> | 93 on-tap="toggleFolder_" on-mousedown="preventDefault_" tabindex="-1"> |
| 93 <iron-icon icon="cr:arrow-drop-down" is-open$="[[!isClosed_]]"> | 94 <iron-icon icon="cr:arrow-drop-down" is-open$="[[!isClosed_]]"> |
| 94 </iron-icon> | 95 </iron-icon> |
| 95 </button> | 96 </button> |
| 96 </template> | 97 </template> |
| 97 <div id="folder-label" class="v-centered"> | 98 <div id="folder-label" class="v-centered"> |
| 98 <iron-icon icon="[[getFolderIcon_(isSelectedFolder_)]]" | 99 <iron-icon icon="[[getFolderIcon_(isSelectedFolder_)]]" |
| 99 no-children$="[[!hasChildFolder_(item_.children)]]"> | 100 no-children$="[[!hasChildFolder_]]"> |
| 100 </iron-icon> | 101 </iron-icon> |
| 101 <div class="menu-label">[[item_.title]]</div> | 102 <div class="menu-label">[[item_.title]]</div> |
| 102 </div> | 103 </div> |
| 103 </div> | 104 </div> |
| 104 <div id="descendants" hidden$="[[isClosed_]]"> | 105 <div id="descendants" hidden$="[[isClosed_]]" role="group"> |
| 105 <template is="dom-repeat" | 106 <template is="dom-repeat" |
| 106 items="[[item_.children]]" | 107 items="[[item_.children]]" |
| 107 as="child" | 108 as="child" |
| 108 filter="isFolder_"> | 109 filter="isFolder_"> |
| 109 <bookmarks-folder-node item-id="[[child]]" | 110 <bookmarks-folder-node item-id="[[child]]" |
| 110 depth="[[getChildDepth_(depth)]]"> | 111 depth="[[getChildDepth_(depth)]]"> |
| 111 </bookmarks-folder-node> | 112 </bookmarks-folder-node> |
| 112 </template> | 113 </template> |
| 113 </div> | 114 </div> |
| 114 </template> | 115 </template> |
| 115 <script src="chrome://bookmarks/folder_node.js"></script> | 116 <script src="chrome://bookmarks/folder_node.js"></script> |
| 116 </dom-module> | 117 </dom-module> |
| OLD | NEW |