diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-18 21:44:19 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-18 21:44:19 +0000 |
commit | 302e0e1a827df92e6eba995ce589a871954f5bf2 (patch) | |
tree | 0dd29c01c54948b297e258828b91f2776c18f08c /views/view.h | |
parent | 3af66ca4e22b15e29a96794f5a9f4ab356d17b87 (diff) | |
download | chromium_src-302e0e1a827df92e6eba995ce589a871954f5bf2.zip chromium_src-302e0e1a827df92e6eba995ce589a871954f5bf2.tar.gz chromium_src-302e0e1a827df92e6eba995ce589a871954f5bf2.tar.bz2 |
Reverts recent patch as broke build on toolkit_views.
TBR=ben
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/174023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23658 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/view.h')
-rw-r--r-- | views/view.h | 28 |
1 files changed, 8 insertions, 20 deletions
diff --git a/views/view.h b/views/view.h index 66ef76f..ba892c1 100644 --- a/views/view.h +++ b/views/view.h @@ -9,11 +9,9 @@ #include <algorithm> #include <map> -#include <set> #include <string> #include <vector> -#include "app/os_exchange_data.h" #include "base/gfx/native_widget_types.h" #include "base/gfx/rect.h" #include "base/scoped_ptr.h" @@ -22,12 +20,17 @@ #include "views/background.h" #include "views/border.h" +#if defined(OS_WIN) +struct IDataObject; +#endif // defined(OS_WIN) + namespace gfx { class Canvas; class Insets; class Path; } +class OSExchangeData; class ViewAccessibilityWrapper; class ThemeProvider; @@ -739,12 +742,9 @@ class View : public AcceleratorTarget { DragController* GetDragController(); // During a drag and drop session when the mouse moves the view under the - // mouse is queried for the drop types it supports by way of the - // GetDropFormats methods. If the view returns true and the drag site can - // provide data in one of the formats, the view is asked if the drop data - // is required before any other drop events are sent. Once the - // data is available the view is asked if it supports the drop (by way of - // the CanDrop method). If a view returns true from CanDrop, + // mouse is queried to see if it should be a target for the drag and drop + // session. A view indicates it is a valid target by returning true from + // CanDrop. If a view returns true from CanDrop, // OnDragEntered is sent to the view when the mouse first enters the view, // as the mouse moves around within the view OnDragUpdated is invoked. // If the user releases the mouse over the view and OnDragUpdated returns a @@ -756,18 +756,6 @@ class View : public AcceleratorTarget { // the mouse does not support the drop, the ancestors are walked until one // is found that supports the drop. - // Override and return the set of formats that can be dropped on this view. - // |formats| is a bitmask of the formats defined bye OSExchangeData::Format. - // The default implementation returns false, which means the view doesn't - // support dropping. - virtual bool GetDropFormats( - int* formats, - std::set<OSExchangeData::CustomFormat>* custom_formats); - - // Override and return true if the data must be available before any drop - // methods should be invoked. The default is false. - virtual bool AreDropTypesRequired(); - // A view that supports drag and drop must override this and return true if // data contains a type that may be dropped on this view. virtual bool CanDrop(const OSExchangeData& data); |