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