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

Unified Diff: chrome/browser/views/bookmark_menu_controller_views.cc

Issue 199050: Wires up drag and drop for bookmark menus and cleans up a couple of... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 3 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
Index: chrome/browser/views/bookmark_menu_controller_views.cc
===================================================================
--- chrome/browser/views/bookmark_menu_controller_views.cc (revision 25647)
+++ chrome/browser/views/bookmark_menu_controller_views.cc (working copy)
@@ -73,6 +73,19 @@
PageTransition::AUTO_BOOKMARK);
}
+bool BookmarkMenuController::GetDropFormats(
+ views::MenuItemView* menu,
+ int* formats,
+ std::set<OSExchangeData::CustomFormat>* custom_formats) {
+ *formats = OSExchangeData::URL;
+ custom_formats->insert(BookmarkDragData::GetBookmarkCustomFormat());
+ return true;
+}
+
+bool BookmarkMenuController::AreDropTypesRequired(views::MenuItemView* menu) {
+ return true;
+}
+
bool BookmarkMenuController::CanDrop(views::MenuItemView* menu,
const OSExchangeData& data) {
// Only accept drops of 1 node, which is the case for all data dragged from

Powered by Google App Engine
This is Rietveld 408576698