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

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

Issue 2912893002: MD Bookmarks: Support policies for disabling bookmark editing (Closed)
Patch Set: canEdit -> globalCanEdit 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 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 2
3 <link rel="import" href="chrome://resources/cr_elements/cr_action_menu/cr_action _menu.html"> 3 <link rel="import" href="chrome://resources/cr_elements/cr_action_menu/cr_action _menu.html">
4 <link rel="import" href="chrome://resources/cr_elements/cr_lazy_render/cr_lazy_r ender.html"> 4 <link rel="import" href="chrome://resources/cr_elements/cr_lazy_render/cr_lazy_r ender.html">
5 <link rel="import" href="chrome://resources/cr_elements/cr_toolbar/cr_toolbar.ht ml"> 5 <link rel="import" href="chrome://resources/cr_elements/cr_toolbar/cr_toolbar.ht ml">
6 <link rel="import" href="chrome://resources/cr_elements/cr_toolbar/cr_toolbar_se lection_overlay.html"> 6 <link rel="import" href="chrome://resources/cr_elements/cr_toolbar/cr_toolbar_se lection_overlay.html">
7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button-light.html"> 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button-light.html">
8 <link rel="import" href="chrome://bookmarks/edit_dialog.html"> 8 <link rel="import" href="chrome://bookmarks/edit_dialog.html">
9 <link rel="import" href="chrome://bookmarks/shared_style.html"> 9 <link rel="import" href="chrome://bookmarks/shared_style.html">
10 <link rel="stylesheet" href="chrome://resources/css/md_colors.css"> 10 <link rel="stylesheet" href="chrome://resources/css/md_colors.css">
(...skipping 30 matching lines...) Expand all
41 } 41 }
42 42
43 :host(:not([narrow_])) cr-toolbar-selection-overlay { 43 :host(:not([narrow_])) cr-toolbar-selection-overlay {
44 --selection-overlay-padding: var(--card-padding-side); 44 --selection-overlay-padding: var(--card-padding-side);
45 --cr-toolbar-field-margin: var(--sidebar-width); 45 --cr-toolbar-field-margin: var(--sidebar-width);
46 --selection-overlay-max-width: var(--card-max-width); 46 --selection-overlay-max-width: var(--card-max-width);
47 } 47 }
48 </style> 48 </style>
49 <dialog is="cr-action-menu" id="dropdown"> 49 <dialog is="cr-action-menu" id="dropdown">
50 <button class="dropdown-item" on-tap="onSortTap_" 50 <button class="dropdown-item" on-tap="onSortTap_"
51 disabled="[[hasSearchTerm_(searchTerm_)]]"> 51 disabled="[[!canChangeList_]]">
52 $i18n{menuSort} 52 $i18n{menuSort}
53 </button> 53 </button>
54 <hr> 54 <hr>
55 <button class="dropdown-item" on-tap="onAddBookmarkTap_" 55 <button id="addBookmarkButton" class="dropdown-item"
56 disabled="[[hasSearchTerm_(searchTerm_)]]"> 56 on-tap="onAddBookmarkTap_" disabled="[[!canChangeList_]]">
57 $i18n{menuAddBookmark} 57 $i18n{menuAddBookmark}
58 </button> 58 </button>
59 <button class="dropdown-item" on-tap="onAddFolderTap_" 59 <button class="dropdown-item" on-tap="onAddFolderTap_"
60 disabled="[[hasSearchTerm_(searchTerm_)]]"> 60 disabled="[[!canChangeList_]]">
61 $i18n{menuAddFolder} 61 $i18n{menuAddFolder}
62 </button> 62 </button>
63 <hr> 63 <hr>
64 <button class="dropdown-item" on-tap="onImportTap_"> 64 <button id="importBookmarkButton" class="dropdown-item"
65 on-tap="onImportTap_" disabled="[[!globalCanEdit_]]">
65 $i18n{menuImport} 66 $i18n{menuImport}
66 </button> 67 </button>
67 <button class="dropdown-item" on-tap="onExportTap_"> 68 <button class="dropdown-item" on-tap="onExportTap_">
68 $i18n{menuExport} 69 $i18n{menuExport}
69 </button> 70 </button>
70 </dialog> 71 </dialog>
71 <cr-toolbar page-name="$i18n{title}" 72 <cr-toolbar page-name="$i18n{title}"
72 clear-label="$i18n{clearSearch}" 73 clear-label="$i18n{clearSearch}"
73 search-prompt="$i18n{searchPrompt}" 74 search-prompt="$i18n{searchPrompt}"
74 hidden$="[[showSelectionOverlay]]" 75 hidden$="[[showSelectionOverlay]]"
75 narrow="{{narrow_}}" 76 narrow="{{narrow_}}"
76 on-search-changed="onSearchChanged_"> 77 on-search-changed="onSearchChanged_">
77 <button is="paper-icon-button-light" class="more-actions more-vert-button" 78 <button is="paper-icon-button-light" class="more-actions more-vert-button"
78 on-tap="onMenuButtonOpenTap_"> 79 on-tap="onMenuButtonOpenTap_">
79 <div></div> 80 <div></div>
80 <div></div> 81 <div></div>
81 <div></div> 82 <div></div>
82 </button> 83 </button>
83 </cr-toolbar> 84 </cr-toolbar>
84 <template is="cr-lazy-render" id="addDialog"> 85 <template is="cr-lazy-render" id="addDialog">
85 <bookmarks-edit-dialog></bookmarks-edit-dialog> 86 <bookmarks-edit-dialog></bookmarks-edit-dialog>
86 </template> 87 </template>
87 <template is="dom-if" if="[[showSelectionOverlay]]"> 88 <template is="dom-if" if="[[showSelectionOverlay]]">
88 <cr-toolbar-selection-overlay delete-label="$i18n{delete}" 89 <cr-toolbar-selection-overlay delete-label="$i18n{delete}"
89 cancel-label="$i18n{cancel}" 90 cancel-label="$i18n{cancel}"
90 selection-label="[[getItemsSelectedString_(selectedCount_)]]" 91 selection-label="[[getItemsSelectedString_(selectedItems_.size)]]"
92 delete-disabled="[[!canDeleteSelection_(selectedItems_)]]"
91 on-delete-selected-items="onDeleteSelectionTap_" 93 on-delete-selected-items="onDeleteSelectionTap_"
92 on-clear-selected-items="onClearSelectionTap_"> 94 on-clear-selected-items="onClearSelectionTap_">
93 </cr-toolbar-selection-overlay> 95 </cr-toolbar-selection-overlay>
94 </template> 96 </template>
95 </template> 97 </template>
96 <script src="chrome://bookmarks/toolbar.js"></script> 98 <script src="chrome://bookmarks/toolbar.js"></script>
97 </dom-module> 99 </dom-module>
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_bookmarks/reducers.js ('k') | chrome/browser/resources/md_bookmarks/toolbar.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698