diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-18 21:24:34 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-18 21:24:34 +0000 |
commit | 493ba6474eb990b53cb34f57370d4660b2b6aa55 (patch) | |
tree | c53f8ea803354c4d4006024dda3e39abe6fc9cc0 /views/view.cc | |
parent | bbe8521434be58c20cb2a41167bb947e95fc6b4e (diff) | |
download | chromium_src-493ba6474eb990b53cb34f57370d4660b2b6aa55.zip chromium_src-493ba6474eb990b53cb34f57370d4660b2b6aa55.tar.gz chromium_src-493ba6474eb990b53cb34f57370d4660b2b6aa55.tar.bz2 |
Adds drop support for views on gtk. As X lazily provides drop data I
needed to tweak the views API a bit.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/165407
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23653 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/view.cc')
-rw-r--r-- | views/view.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/views/view.cc b/views/view.cc index 4adef5b..30a6e74 100644 --- a/views/view.cc +++ b/views/view.cc @@ -1238,7 +1238,18 @@ DragController* View::GetDragController() { return drag_controller_; } +bool View::GetDropFormats( + int* formats, + std::set<OSExchangeData::CustomFormat>* custom_formats) { + return false; +} + +bool View::AreDropTypesRequired() { + return false; +} + bool View::CanDrop(const OSExchangeData& data) { + // TODO(sky): when I finish up migration, this should default to true. return false; } |