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

Side by Side Diff: ui/base/dragdrop/drop_target.cc

Issue 6250014: Move more dnd related files to ui/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/base/dragdrop/drop_target.h ('k') | ui/base/dragdrop/gtk_dnd_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ui/base/dragdrop/drop_target.h ('k') | ui/base/dragdrop/gtk_dnd_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698