| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_COMMON_DRAG_DROP_TYPES_H_ | 5 #ifndef APP_DRAG_DROP_TYPES_H_ |
| 6 #define CHROME_COMMON_DRAG_DROP_TYPES_H_ | 6 #define APP_DRAG_DROP_TYPES_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 | 9 |
| 10 class DragDropTypes { | 10 class DragDropTypes { |
| 11 public: | 11 public: |
| 12 enum DragOperation { | 12 enum DragOperation { |
| 13 DRAG_NONE = 0, | 13 DRAG_NONE = 0, |
| 14 DRAG_MOVE = 1 << 0, | 14 DRAG_MOVE = 1 << 0, |
| 15 DRAG_COPY = 1 << 1, | 15 DRAG_COPY = 1 << 1, |
| 16 DRAG_LINK = 1 << 2 | 16 DRAG_LINK = 1 << 2 |
| 17 }; | 17 }; |
| 18 | 18 |
| 19 static uint32 DragOperationToDropEffect(int drag_operation); | 19 static uint32 DragOperationToDropEffect(int drag_operation); |
| 20 static int DropEffectToDragOperation(uint32 effect); | 20 static int DropEffectToDragOperation(uint32 effect); |
| 21 }; | 21 }; |
| 22 | 22 |
| 23 #endif // CHROME_COMMON_DRAG_DROP_TYPES_H_ | 23 #endif // APP_DRAG_DROP_TYPES_H_ |
| OLD | NEW |