OLD | NEW |
---|---|
1 // Copyright (c) 2011 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 #ifndef UI_BASE_DRAGDROP_DRAG_DROP_TYPES_H_ | 5 #ifndef UI_BASE_DRAGDROP_DRAG_DROP_TYPES_H_ |
6 #define UI_BASE_DRAGDROP_DRAG_DROP_TYPES_H_ | 6 #define UI_BASE_DRAGDROP_DRAG_DROP_TYPES_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 14 matching lines...) Expand all Loading... | |
25 DRAG_EVENT_SOURCE_MOUSE = 0, | 25 DRAG_EVENT_SOURCE_MOUSE = 0, |
26 DRAG_EVENT_SOURCE_TOUCH, | 26 DRAG_EVENT_SOURCE_TOUCH, |
27 DRAG_EVENT_SOURCE_LAST = DRAG_EVENT_SOURCE_TOUCH, | 27 DRAG_EVENT_SOURCE_LAST = DRAG_EVENT_SOURCE_TOUCH, |
28 DRAG_EVENT_SOURCE_COUNT | 28 DRAG_EVENT_SOURCE_COUNT |
29 }; | 29 }; |
30 | 30 |
31 #if defined(OS_WIN) | 31 #if defined(OS_WIN) |
32 static uint32_t DragOperationToDropEffect(int drag_operation); | 32 static uint32_t DragOperationToDropEffect(int drag_operation); |
33 static int DropEffectToDragOperation(uint32_t effect); | 33 static int DropEffectToDragOperation(uint32_t effect); |
34 #endif | 34 #endif |
35 | |
36 #if defined(OS_MACOSX) | |
37 static uint32_t DragOperationToNSDragOperation(int drag_operation); | |
tapted
2016/05/11 12:36:15
(nit NSUInteger is 64-bits on 64-bit platforms, so
spqchan
2016/05/23 21:26:21
Done.
| |
38 #endif | |
35 }; | 39 }; |
36 | 40 |
37 } // namespace ui | 41 } // namespace ui |
38 | 42 |
39 #endif // UI_BASE_DRAGDROP_DRAG_DROP_TYPES_H_ | 43 #endif // UI_BASE_DRAGDROP_DRAG_DROP_TYPES_H_ |
OLD | NEW |