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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 | 77 |
78 [no-children] { | 78 [no-children] { |
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 tabindex$="[[getTabIndex_(isSelectedFolder_)]]" | 88 tabindex$="[[getTabIndex_(isSelectedFolder_)]]" |
88 hidden="[[isRootFolder_(depth)]]"> | 89 hidden="[[isRootFolder_(depth)]]"> |
89 <template is="dom-if" if="[[hasChildFolder_(item_.children)]]"> | 90 <template is="dom-if" if="[[hasChildFolder_(item_.children)]]"> |
90 <button is="paper-icon-button-light" id="arrow" | 91 <button is="paper-icon-button-light" id="arrow" |
91 on-tap="toggleFolder_" on-mousedown="preventDefault_" tabindex="-1"> | 92 on-tap="toggleFolder_" on-mousedown="preventDefault_" tabindex="-1"> |
92 <iron-icon icon="cr:arrow-drop-down" is-open$="[[!isClosed_]]"> | 93 <iron-icon icon="cr:arrow-drop-down" is-open$="[[!isClosed_]]"> |
93 </iron-icon> | 94 </iron-icon> |
94 </button> | 95 </button> |
95 </template> | 96 </template> |
96 <div id="folder-label" class="v-centered"> | 97 <div id="folder-label" class="v-centered"> |
97 <iron-icon icon="[[getFolderIcon_(isSelectedFolder_)]]" | 98 <iron-icon icon="[[getFolderIcon_(isSelectedFolder_)]]" |
98 no-children$="[[!hasChildFolder_(item_.children)]]"> | 99 no-children$="[[!hasChildFolder_(item_.children)]]"> |
99 </iron-icon> | 100 </iron-icon> |
100 <div class="menu-label">[[item_.title]]</div> | 101 <div class="menu-label">[[item_.title]]</div> |
101 </div> | 102 </div> |
102 </div> | 103 </div> |
103 <div id="descendants" hidden$="[[isClosed_]]"> | 104 <div id="descendants" hidden$="[[isClosed_]]"> |
104 <template is="dom-repeat" | 105 <template is="dom-repeat" |
105 items="[[item_.children]]" | 106 items="[[item_.children]]" |
106 as="child" | 107 as="child" |
107 filter="isFolder_"> | 108 filter="isFolder_"> |
108 <bookmarks-folder-node item-id="[[child]]" | 109 <bookmarks-folder-node item-id="[[child]]" |
109 depth="[[getChildDepth_(depth)]]"> | 110 depth="[[getChildDepth_(depth)]]"> |
110 </bookmarks-folder-node> | 111 </bookmarks-folder-node> |
111 </template> | 112 </template> |
112 </div> | 113 </div> |
113 </template> | 114 </template> |
114 <script src="chrome://bookmarks/folder_node.js"></script> | 115 <script src="chrome://bookmarks/folder_node.js"></script> |
115 </dom-module> | 116 </dom-module> |
OLD | NEW |