diff options
author | wez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-21 18:00:32 +0000 |
---|---|---|
committer | wez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-21 18:00:32 +0000 |
commit | 79f06c737237ce41274a3e528a500c9a7fb48ae3 (patch) | |
tree | 16c6291a61b658c15ecda8fff6e8e4c701c119fc /ui/views/widget/drop_target_win.h | |
parent | ec77efa8699c028cc8a1712c75b68be28833b3bf (diff) | |
download | chromium_src-79f06c737237ce41274a3e528a500c9a7fb48ae3.zip chromium_src-79f06c737237ce41274a3e528a500c9a7fb48ae3.tar.gz chromium_src-79f06c737237ce41274a3e528a500c9a7fb48ae3.tar.bz2 |
Revert 110949 - views: Move widget/ directory to ui/views.
BUG=104039
R=ben@chromium.org
Review URL: http://codereview.chromium.org/8598031
TBR=tfarina@chromium.org
Review URL: http://codereview.chromium.org/8547015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110953 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/widget/drop_target_win.h')
-rw-r--r-- | ui/views/widget/drop_target_win.h | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/ui/views/widget/drop_target_win.h b/ui/views/widget/drop_target_win.h deleted file mode 100644 index 3249ec5..0000000 --- a/ui/views/widget/drop_target_win.h +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef UI_VIEWS_WIDGET_DROP_TARGET_WIN_H_ -#define UI_VIEWS_WIDGET_DROP_TARGET_WIN_H_ -#pragma once - -#include "ui/base/dragdrop/drop_target.h" -#include "ui/views/widget/drop_helper.h" - -namespace views { - -class View; -namespace internal { -class RootView; -} - -// DropTargetWin takes care of managing drag and drop for NativeWidgetWin. It -// converts Windows OLE drop messages into Views drop messages. -// -// DropTargetWin uses DropHelper to manage the appropriate view to target -// drop messages at. -class DropTargetWin : public ui::DropTarget { - public: - explicit DropTargetWin(internal::RootView* root_view); - virtual ~DropTargetWin(); - - // If a drag and drop is underway and view is the current drop target, the - // drop target is set to null. - // This is invoked when a View is removed from the RootView to make sure - // we don't target a view that was removed during dnd. - void ResetTargetViewIfEquals(View* view); - - protected: - virtual DWORD OnDragOver(IDataObject* data_object, - DWORD key_state, - POINT cursor_position, - DWORD effect); - - virtual void OnDragLeave(IDataObject* data_object); - - virtual DWORD OnDrop(IDataObject* data_object, - DWORD key_state, - POINT cursor_position, - DWORD effect); - - private: - views::DropHelper helper_; - - DISALLOW_COPY_AND_ASSIGN(DropTargetWin); -}; - -} // namespace views - -#endif // UI_VIEWS_WIDGET_DROP_TARGET_WIN_H_ |