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

Side by Side Diff: ui/base/dragdrop/drag_source.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/drag_source.h ('k') | ui/base/dragdrop/drop_target.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/drag_source.h" 5 #include "ui/base/dragdrop/drag_source.h"
6 6
7 namespace app { 7 namespace ui {
8 namespace win {
9 8
10 DragSource::DragSource() : cancel_drag_(false) { 9 DragSource::DragSource() : cancel_drag_(false) {
11 } 10 }
12 11
13 HRESULT DragSource::QueryContinueDrag(BOOL escape_pressed, DWORD key_state) { 12 HRESULT DragSource::QueryContinueDrag(BOOL escape_pressed, DWORD key_state) {
14 if (cancel_drag_) 13 if (cancel_drag_)
15 return DRAGDROP_S_CANCEL; 14 return DRAGDROP_S_CANCEL;
16 15
17 if (escape_pressed) { 16 if (escape_pressed) {
18 OnDragSourceCancel(); 17 OnDragSourceCancel();
(...skipping 27 matching lines...) Expand all
46 ULONG DragSource::AddRef() { 45 ULONG DragSource::AddRef() {
47 base::RefCountedThreadSafe<DragSource>::AddRef(); 46 base::RefCountedThreadSafe<DragSource>::AddRef();
48 return 0; 47 return 0;
49 } 48 }
50 49
51 ULONG DragSource::Release() { 50 ULONG DragSource::Release() {
52 base::RefCountedThreadSafe<DragSource>::Release(); 51 base::RefCountedThreadSafe<DragSource>::Release();
53 return 0; 52 return 0;
54 } 53 }
55 54
56 } // namespace win 55 } // namespace ui
57 } // namespace app
OLDNEW
« no previous file with comments | « ui/base/dragdrop/drag_source.h ('k') | ui/base/dragdrop/drop_target.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698