OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "app/win/drop_target.h" | 5 #include "ui/base/dragdrop/drop_target.h" |
6 | 6 |
7 #include <shlobj.h> | 7 #include <shlobj.h> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 | 10 |
11 namespace app { | 11 namespace ui { |
12 namespace win { | |
13 | 12 |
14 IDropTargetHelper* DropTarget::cached_drop_target_helper_ = NULL; | 13 IDropTargetHelper* DropTarget::cached_drop_target_helper_ = NULL; |
15 int32 DropTarget::drag_identity_ = 0; | 14 int32 DropTarget::drag_identity_ = 0; |
16 | 15 |
17 DropTarget::DropTarget(HWND hwnd) | 16 DropTarget::DropTarget(HWND hwnd) |
18 : hwnd_(hwnd), | 17 : hwnd_(hwnd), |
19 suspended_(false), | 18 suspended_(false), |
20 ref_count_(0) { | 19 ref_count_(0) { |
21 DCHECK(hwnd); | 20 DCHECK(hwnd); |
22 HRESULT result = RegisterDragDrop(hwnd, this); | 21 HRESULT result = RegisterDragDrop(hwnd, this); |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 void DropTarget::OnDragLeave(IDataObject* data_object) { | 162 void DropTarget::OnDragLeave(IDataObject* data_object) { |
164 } | 163 } |
165 | 164 |
166 DWORD DropTarget::OnDrop(IDataObject* data_object, | 165 DWORD DropTarget::OnDrop(IDataObject* data_object, |
167 DWORD key_state, | 166 DWORD key_state, |
168 POINT cursor_position, | 167 POINT cursor_position, |
169 DWORD effect) { | 168 DWORD effect) { |
170 return DROPEFFECT_NONE; | 169 return DROPEFFECT_NONE; |
171 } | 170 } |
172 | 171 |
173 } // namespace win | 172 } // namespace ui |
174 } // namespace app | |
OLD | NEW |