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/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 Loading... |
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 | |
OLD | NEW |