|
|
MD Bookmarks: Support policies for disabling bookmark editing
Bookmark editing can be disabled globally with the 'EditBookmarksEnabled'
policy, or for a single subtree with the 'ManagedBookmarks' policy.
This CL adds support for unmodifiable bookmarks, disabling the following
features for unmodifiable bookmarks:
* Drag and drop
* Toolbar overlay
* Toolbar overflow menu add/sort commands
* Edit/delete commands from context menus and keyboard shortcuts
BUG= 708894
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
Review-Url: https://codereview.chromium.org/2912893002
Cr-Commit-Position: refs/heads/master@{#479211}
Committed: https://chromium.googlesource.com/chromium/src/+/2437f9950a67ed3838443fb8f23b7d070f69f6a8
Total comments: 11
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+413 lines, -51 lines) |
Patch |
 |
M |
chrome/browser/resources/md_bookmarks/actions.js
|
View
|
|
2 chunks |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/md_bookmarks/api_listener.js
|
View
|
|
2 chunks |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/md_bookmarks/command_manager.html
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/md_bookmarks/command_manager.js
|
View
|
1
2
3
4
|
6 chunks |
+34 lines, -9 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/md_bookmarks/dnd_manager.js
|
View
|
1
2
3
|
3 chunks |
+10 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/md_bookmarks/folder_node.html
|
View
|
1
2
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/md_bookmarks/folder_node.js
|
View
|
1
2
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/md_bookmarks/reducers.js
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/md_bookmarks/toolbar.html
|
View
|
1
2
3
4
|
2 chunks |
+8 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/md_bookmarks/toolbar.js
|
View
|
1
2
3
4
|
5 chunks |
+34 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/md_bookmarks/types.js
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/md_bookmarks/util.js
|
View
|
1
2
3
|
3 chunks |
+30 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/md_bookmarks/bookmarks_message_handler.h
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/md_bookmarks/bookmarks_message_handler.cc
|
View
|
|
4 chunks |
+35 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/md_bookmarks/md_bookmarks_browsertest.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/md_bookmarks/md_bookmarks_browsertest.cc
|
View
|
|
4 chunks |
+25 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/test/data/webui/md_bookmarks/command_manager_test.js
|
View
|
1
2
|
3 chunks |
+40 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/test/data/webui/md_bookmarks/dnd_manager_test.js
|
View
|
1
2
|
2 chunks |
+37 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/test/data/webui/md_bookmarks/md_bookmarks_browsertest.js
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/test/data/webui/md_bookmarks/md_bookmarks_focus_test.js
|
View
|
1
2
|
1 chunk |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/test/data/webui/md_bookmarks/policy_test.js
|
View
|
1
2
|
3 chunks |
+16 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/test/data/webui/md_bookmarks/toolbar_test.js
|
View
|
1
2
|
3 chunks |
+47 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/test/data/webui/md_bookmarks/util_test.js
|
View
|
1
2
3
|
1 chunk |
+43 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar_selection_overlay.html
|
View
|
1
2
|
2 chunks |
+8 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar_selection_overlay.js
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
Dependent Patchsets:
Total messages: 30 (23 generated)
|