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

Unified Diff: chrome/browser/resources/md_bookmarks/command_manager.html

Issue 2940233003: MD Bookmarks: Lazily render dropdown menus (Closed)
Patch Set: Rebase Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/resources/md_bookmarks/command_manager.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_bookmarks/command_manager.html
diff --git a/chrome/browser/resources/md_bookmarks/command_manager.html b/chrome/browser/resources/md_bookmarks/command_manager.html
index 8245ee7278ada6e1b2efa0efc6601d3ac8f939d5..34622f39d18d0aba7486e7ba5194179a58c859f4 100644
--- a/chrome/browser/resources/md_bookmarks/command_manager.html
+++ b/chrome/browser/resources/md_bookmarks/command_manager.html
@@ -26,23 +26,25 @@
display: none;
}
</style>
- <dialog is="cr-action-menu" id="dropdown" on-mousedown="onMenuMousedown_">
- <template is="dom-repeat" items="[[menuCommands_]]" as="command">
- <button class="dropdown-item"
- command$="[[command]]"
- hidden$="[[!isCommandVisible_(command, menuIds_)]]"
- disabled$="[[!isCommandEnabled_(command, menuIds_)]]"
- on-tap="onCommandClick_">
- <span class="label">
- [[getCommandLabel_(command, menuIds_)]]
- </span>
- <span class="sublabel">
- [[getCommandSublabel_(command, menuIds_)]]
- </span>
- </button>
- <hr hidden$="[[!showDividerAfter_(command, menuIds_)]]"></hr>
- </template>
- </dialog>
+ <template is="cr-lazy-render" id="dropdown">
+ <dialog is="cr-action-menu" on-mousedown="onMenuMousedown_">
+ <template is="dom-repeat" items="[[menuCommands_]]" as="command">
+ <button class="dropdown-item"
+ command$="[[command]]"
+ hidden$="[[!isCommandVisible_(command, menuIds_)]]"
+ disabled$="[[!isCommandEnabled_(command, menuIds_)]]"
+ on-tap="onCommandClick_">
+ <span class="label">
+ [[getCommandLabel_(command, menuIds_)]]
+ </span>
+ <span class="sublabel">
+ [[getCommandSublabel_(command, menuIds_)]]
+ </span>
+ </button>
+ <hr hidden$="[[!showDividerAfter_(command, menuIds_)]]"></hr>
+ </template>
+ </dialog>
+ </template>
<template is="cr-lazy-render" id="editDialog">
<bookmarks-edit-dialog></bookmarks-edit-dialog>
</template>
« no previous file with comments | « no previous file | chrome/browser/resources/md_bookmarks/command_manager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698