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

Side by Side Diff: chrome/browser/resources/md_bookmarks/folder_node.html

Issue 2820153003: [MD Bookmarks] Add keyboard navigation to sidebar. (Closed)
Patch Set: fix test Created 3 years, 7 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 unified diff | Download patch
OLDNEW
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-light.html"> 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button-light.html">
5 <link rel="import" href="chrome://bookmarks/actions.html"> 5 <link rel="import" href="chrome://bookmarks/actions.html">
6 <link rel="import" href="chrome://bookmarks/icons.html"> 6 <link rel="import" href="chrome://bookmarks/icons.html">
7 <link rel="import" href="chrome://bookmarks/shared_style.html"> 7 <link rel="import" href="chrome://bookmarks/shared_style.html">
8 <link rel="import" href="chrome://bookmarks/store_client.html"> 8 <link rel="import" href="chrome://bookmarks/store_client.html">
9 9
10 <dom-module id="bookmarks-folder-node"> 10 <dom-module id="bookmarks-folder-node">
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 transform: initial; 69 transform: initial;
70 } 70 }
71 71
72 [no-children] { 72 [no-children] {
73 -webkit-padding-start: 52px; /* The width of the arrow and its margin */ 73 -webkit-padding-start: 52px; /* The width of the arrow and its margin */
74 } 74 }
75 </style> 75 </style>
76 76
77 <div id="container" class="v-centered" on-tap="selectFolder_" 77 <div id="container" class="v-centered" on-tap="selectFolder_"
78 draggable="[[!isTopLevelFolder_(depth)]]" 78 draggable="[[!isTopLevelFolder_(depth)]]"
79 tabindex$="[[getTabIndex_(isSelectedFolder_)]]"
79 hidden="[[isRootFolder_(depth)]]"> 80 hidden="[[isRootFolder_(depth)]]">
80 <template is="dom-if" if="[[hasChildFolder_(item_.children)]]"> 81 <template is="dom-if" if="[[hasChildFolder_(item_.children)]]">
81 <button is="paper-icon-button-light" id="arrow" 82 <button is="paper-icon-button-light" id="arrow"
82 is-open$="[[!isClosed_]]" on-tap="toggleFolder_"> 83 is-open$="[[!isClosed_]]" on-tap="toggleFolder_" tabindex="">
tsergeant 2017/05/03 03:56:38 With the change to paper-icon-button-light, tabind
calamity 2017/05/03 05:13:56 Made mousedown preventDefault.
83 <iron-icon icon="cr:arrow-drop-down"></iron-icon> 84 <iron-icon icon="cr:arrow-drop-down"></iron-icon>
84 </button> 85 </button>
85 </template> 86 </template>
86 <div id="folder-label" class="v-centered"> 87 <div id="folder-label" class="v-centered">
87 <iron-icon icon="[[getFolderIcon_(isSelectedFolder_)]]" 88 <iron-icon icon="[[getFolderIcon_(isSelectedFolder_)]]"
88 no-children$="[[!hasChildFolder_(item_.children)]]"> 89 no-children$="[[!hasChildFolder_(item_.children)]]">
89 </iron-icon> 90 </iron-icon>
90 <div class="menu-label">[[item_.title]]</div> 91 <div class="menu-label">[[item_.title]]</div>
91 </div> 92 </div>
92 </div> 93 </div>
93 <div id="descendants" hidden$="[[isClosed_]]"> 94 <div id="descendants" hidden$="[[isClosed_]]">
94 <template is="dom-repeat" 95 <template is="dom-repeat"
95 items="[[item_.children]]" 96 items="[[item_.children]]"
96 as="child" 97 as="child"
97 filter="isFolder_"> 98 filter="isFolder_">
98 <bookmarks-folder-node item-id="[[child]]" 99 <bookmarks-folder-node item-id="[[child]]"
99 depth="[[getChildDepth_(depth)]]"> 100 depth="[[getChildDepth_(depth)]]">
100 </bookmarks-folder-node> 101 </bookmarks-folder-node>
101 </template> 102 </template>
102 </div> 103 </div>
103 </template> 104 </template>
104 <script src="chrome://bookmarks/folder_node.js"></script> 105 <script src="chrome://bookmarks/folder_node.js"></script>
105 </dom-module> 106 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698