OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/tab_contents/web_drag_utils_win.h" | 5 #include "content/browser/tab_contents/web_drag_utils_win.h" |
6 | 6 |
7 #include <oleidl.h> | 7 #include <oleidl.h> |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 | 9 |
10 using WebKit::WebDragOperation; | 10 using WebKit::WebDragOperation; |
11 using WebKit::WebDragOperationsMask; | 11 using WebKit::WebDragOperationsMask; |
12 using WebKit::WebDragOperationNone; | 12 using WebKit::WebDragOperationNone; |
13 using WebKit::WebDragOperationCopy; | 13 using WebKit::WebDragOperationCopy; |
14 using WebKit::WebDragOperationLink; | 14 using WebKit::WebDragOperationLink; |
15 using WebKit::WebDragOperationMove; | 15 using WebKit::WebDragOperationMove; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 win_ops |= DROPEFFECT_COPY; | 52 win_ops |= DROPEFFECT_COPY; |
53 if (ops & WebDragOperationLink) | 53 if (ops & WebDragOperationLink) |
54 win_ops |= DROPEFFECT_LINK; | 54 win_ops |= DROPEFFECT_LINK; |
55 if (ops & (WebDragOperationMove | WebDragOperationGeneric)) | 55 if (ops & (WebDragOperationMove | WebDragOperationGeneric)) |
56 win_ops |= DROPEFFECT_MOVE; | 56 win_ops |= DROPEFFECT_MOVE; |
57 return win_ops; | 57 return win_ops; |
58 } | 58 } |
59 | 59 |
60 } // namespace web_drag_utils_win | 60 } // namespace web_drag_utils_win |
61 | 61 |
OLD | NEW |