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

Unified Diff: views/controls/menu/submenu_view.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
« views/controls/menu/menu_delegate.h ('K') | « views/controls/menu/submenu_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/menu/submenu_view.cc
===================================================================
--- views/controls/menu/submenu_view.cc (revision 25647)
+++ views/controls/menu/submenu_view.cc (working copy)
@@ -112,8 +112,19 @@
PaintDropIndicator(canvas, drop_item_, drop_position_);
}
-// TODO(sky): need to add support for new dnd methods for Linux.
+bool SubmenuView::GetDropFormats(
+ int* formats,
+ std::set<OSExchangeData::CustomFormat>* custom_formats) {
+ DCHECK(GetMenuItem()->GetMenuController());
+ return GetMenuItem()->GetMenuController()->GetDropFormats(this, formats,
+ custom_formats);
+}
+bool SubmenuView::AreDropTypesRequired() {
+ DCHECK(GetMenuItem()->GetMenuController());
+ return GetMenuItem()->GetMenuController()->AreDropTypesRequired(this);
+}
+
bool SubmenuView::CanDrop(const OSExchangeData& data) {
DCHECK(GetMenuItem()->GetMenuController());
return GetMenuItem()->GetMenuController()->CanDrop(this, data);
« views/controls/menu/menu_delegate.h ('K') | « views/controls/menu/submenu_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698