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

Side by Side Diff: chrome/browser/ui/webui/md_bookmarks/md_bookmarks_ui.cc

Issue 2758703002: [WIP] MD Bookmarks Drag and Drop. (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « chrome/browser/resources/md_bookmarks/util.js ('k') | extensions/common/api/_api_features.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/md_bookmarks/md_bookmarks_ui.h" 5 #include "chrome/browser/ui/webui/md_bookmarks/md_bookmarks_ui.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // Resources. 68 // Resources.
69 source->AddResourcePath("actions.html", IDR_MD_BOOKMARKS_ACTIONS_HTML); 69 source->AddResourcePath("actions.html", IDR_MD_BOOKMARKS_ACTIONS_HTML);
70 source->AddResourcePath("actions.js", IDR_MD_BOOKMARKS_ACTIONS_JS); 70 source->AddResourcePath("actions.js", IDR_MD_BOOKMARKS_ACTIONS_JS);
71 source->AddResourcePath("api_listener.html", 71 source->AddResourcePath("api_listener.html",
72 IDR_MD_BOOKMARKS_API_LISTENER_HTML); 72 IDR_MD_BOOKMARKS_API_LISTENER_HTML);
73 source->AddResourcePath("api_listener.js", IDR_MD_BOOKMARKS_API_LISTENER_JS); 73 source->AddResourcePath("api_listener.js", IDR_MD_BOOKMARKS_API_LISTENER_JS);
74 source->AddResourcePath("app.html", IDR_MD_BOOKMARKS_APP_HTML); 74 source->AddResourcePath("app.html", IDR_MD_BOOKMARKS_APP_HTML);
75 source->AddResourcePath("app.js", IDR_MD_BOOKMARKS_APP_JS); 75 source->AddResourcePath("app.js", IDR_MD_BOOKMARKS_APP_JS);
76 source->AddResourcePath("bookmarks_store.js", 76 source->AddResourcePath("bookmarks_store.js",
77 IDR_MD_BOOKMARKS_BOOKMARKS_STORE_JS); 77 IDR_MD_BOOKMARKS_BOOKMARKS_STORE_JS);
78 source->AddResourcePath("dnd_manager.html",
79 IDR_MD_BOOKMARKS_DND_MANAGER_HTML);
80 source->AddResourcePath("dnd_manager.js", IDR_MD_BOOKMARKS_DND_MANAGER_JS);
78 source->AddResourcePath("folder_node.html", 81 source->AddResourcePath("folder_node.html",
79 IDR_MD_BOOKMARKS_FOLDER_NODE_HTML); 82 IDR_MD_BOOKMARKS_FOLDER_NODE_HTML);
80 source->AddResourcePath("folder_node.js", 83 source->AddResourcePath("folder_node.js",
81 IDR_MD_BOOKMARKS_FOLDER_NODE_JS); 84 IDR_MD_BOOKMARKS_FOLDER_NODE_JS);
82 source->AddResourcePath("icons.html", IDR_MD_BOOKMARKS_ICONS_HTML); 85 source->AddResourcePath("icons.html", IDR_MD_BOOKMARKS_ICONS_HTML);
83 source->AddResourcePath("item.html", IDR_MD_BOOKMARKS_ITEM_HTML); 86 source->AddResourcePath("item.html", IDR_MD_BOOKMARKS_ITEM_HTML);
84 source->AddResourcePath("item.js", IDR_MD_BOOKMARKS_ITEM_JS); 87 source->AddResourcePath("item.js", IDR_MD_BOOKMARKS_ITEM_JS);
85 source->AddResourcePath("list.html", IDR_MD_BOOKMARKS_LIST_HTML); 88 source->AddResourcePath("list.html", IDR_MD_BOOKMARKS_LIST_HTML);
86 source->AddResourcePath("list.js", IDR_MD_BOOKMARKS_LIST_JS); 89 source->AddResourcePath("list.js", IDR_MD_BOOKMARKS_LIST_JS);
87 source->AddResourcePath("reducers.html", IDR_MD_BOOKMARKS_REDUCERS_HTML); 90 source->AddResourcePath("reducers.html", IDR_MD_BOOKMARKS_REDUCERS_HTML);
(...skipping 27 matching lines...) Expand all
115 // Set up the chrome://bookmarks/ source. 118 // Set up the chrome://bookmarks/ source.
116 Profile* profile = Profile::FromWebUI(web_ui); 119 Profile* profile = Profile::FromWebUI(web_ui);
117 content::WebUIDataSource::Add(profile, 120 content::WebUIDataSource::Add(profile,
118 CreateMdBookmarksUIHTMLSource(profile)); 121 CreateMdBookmarksUIHTMLSource(profile));
119 } 122 }
120 123
121 // static 124 // static
122 bool MdBookmarksUI::IsEnabled() { 125 bool MdBookmarksUI::IsEnabled() {
123 return base::FeatureList::IsEnabled(features::kMaterialDesignBookmarks); 126 return base::FeatureList::IsEnabled(features::kMaterialDesignBookmarks);
124 } 127 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_bookmarks/util.js ('k') | extensions/common/api/_api_features.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698