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

Unified Diff: views/controls/menu/menu_delegate.h

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
« no previous file with comments | « views/controls/menu/menu_controller.cc ('k') | views/controls/menu/menu_scroll_view_container.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/menu/menu_delegate.h
===================================================================
--- views/controls/menu/menu_delegate.h (revision 25647)
+++ views/controls/menu/menu_delegate.h (working copy)
@@ -5,15 +5,15 @@
#ifndef VIEWS_CONTROLS_MENU_MENU_DELEGATE_H_
#define VIEWS_CONTROLS_MENU_MENU_DELEGATE_H_
+#include <set>
#include <string>
#include "app/drag_drop_types.h"
+#include "app/os_exchange_data.h"
#include "base/logging.h"
#include "views/controls/menu/controller.h"
#include "views/event.h"
-class OSExchangeData;
-
namespace views {
class DropTargetEvent;
@@ -109,11 +109,25 @@
// Where A has a submenu with children B and C. This is ONLY invoked for
// A, not B and C.
//
+
jcampan 2009/09/08 20:27:36 Nit: remove empty line
// To restrict which children can be dropped on override GetDropOperation.
virtual bool CanDrop(MenuItemView* menu, const OSExchangeData& data) {
return false;
}
+ // See view for a description of this method.
+ virtual bool GetDropFormats(
+ MenuItemView* menu,
+ int* formats,
+ std::set<OSExchangeData::CustomFormat>* custom_formats) {
+ return false;
+ }
+
+ // See view for a description of this method.
+ virtual bool AreDropTypesRequired(MenuItemView* menu) {
+ return false;
+ }
+
// Returns the drop operation for the specified target menu item. This is
// only invoked if CanDrop returned true for the parent menu. position
// is set based on the location of the mouse, reset to specify a different
« no previous file with comments | « views/controls/menu/menu_controller.cc ('k') | views/controls/menu/menu_scroll_view_container.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698