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

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

Issue 2864993002: MD Bookmarks: Add commands for 'Open in <x>' menu items (Closed)
Patch Set: Review comments 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 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 2ec008d9942b0cf2ab23ed84c7cf588c5e49d5cd..c2391bba0354b76f08377cd25fb8207364b367fa 100644
--- a/chrome/browser/resources/md_bookmarks/command_manager.html
+++ b/chrome/browser/resources/md_bookmarks/command_manager.html
@@ -3,29 +3,23 @@
<link rel="import" href="chrome://resources/cr_elements/cr_lazy_render/cr_lazy_render.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-a11y-keys-behavior/iron-a11y-keys-behavior.html">
<link rel="import" href="chrome://bookmarks/edit_dialog.html">
+<link rel="import" href="chrome://bookmarks/shared_style.html">
<link rel="import" href="chrome://bookmarks/store_client.html">
<dom-module id="bookmarks-command-manager">
<template>
+ <style include="shared-style"></style>
<dialog is="cr-action-menu" id="dropdown" on-mousedown="onMenuMousedown_">
- <button class="dropdown-item"
- command="edit"
- hidden$="[[!canExecute('edit', menuIds_)]]"
- on-tap="onCommandClick_">
- [[getEditActionLabel_(menuIds_)]]
- </button>
- <button class="dropdown-item"
- command="copy"
- hidden$="[[!canExecute('copy', menuIds_)]]"
- on-tap="onCommandClick_">
- $i18n{menuCopyURL}
- </button>
- <button class="dropdown-item"
- command="delete"
- hidden$="[[!canExecute('delete', menuIds_)]]"
- on-tap="onCommandClick_">
- $i18n{menuDelete}
- </button>
+ <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_">
+ [[getCommandLabel_(command, menuIds_)]]
+ </button>
+ <hr hidden$="[[!showDividerAfter_(command)]]"></hr>
+ </template>
</dialog>
<template is="cr-lazy-render" id="editDialog">
<bookmarks-edit-dialog></bookmarks-edit-dialog>
« 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