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 #include <windows.h> | 5 #include <windows.h> |
6 #include <shlobj.h> | 6 #include <shlobj.h> |
7 | 7 |
8 #include "chrome/browser/tab_contents/web_drop_target.h" | 8 #include "chrome/browser/tab_contents/web_drop_target.h" |
9 | 9 |
| 10 #include "app/os_exchange_data.h" |
10 #include "base/clipboard_util.h" | 11 #include "base/clipboard_util.h" |
11 #include "base/gfx/point.h" | 12 #include "base/gfx/point.h" |
12 #include "chrome/browser/renderer_host/render_view_host.h" | 13 #include "chrome/browser/renderer_host/render_view_host.h" |
13 #include "chrome/browser/tab_contents/tab_contents.h" | 14 #include "chrome/browser/tab_contents/tab_contents.h" |
14 #include "chrome/common/os_exchange_data.h" | |
15 #include "googleurl/src/gurl.h" | 15 #include "googleurl/src/gurl.h" |
16 #include "net/base/net_util.h" | 16 #include "net/base/net_util.h" |
17 #include "webkit/glue/webdropdata.h" | 17 #include "webkit/glue/webdropdata.h" |
18 #include "webkit/glue/window_open_disposition.h" | 18 #include "webkit/glue/window_open_disposition.h" |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 // A helper method for getting the preferred drop effect. | 22 // A helper method for getting the preferred drop effect. |
23 DWORD GetPreferredDropEffect(DWORD effect) { | 23 DWORD GetPreferredDropEffect(DWORD effect) { |
24 if (effect & DROPEFFECT_COPY) | 24 if (effect & DROPEFFECT_COPY) |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 tab_contents_->render_view_host()->DragTargetDrop( | 173 tab_contents_->render_view_host()->DragTargetDrop( |
174 gfx::Point(client_pt.x, client_pt.y), | 174 gfx::Point(client_pt.x, client_pt.y), |
175 gfx::Point(cursor_position.x, cursor_position.y)); | 175 gfx::Point(cursor_position.x, cursor_position.y)); |
176 | 176 |
177 current_rvh_ = NULL; | 177 current_rvh_ = NULL; |
178 | 178 |
179 // We lie and always claim that the drop operation didn't happen because we | 179 // We lie and always claim that the drop operation didn't happen because we |
180 // don't want to wait for the renderer to respond. | 180 // don't want to wait for the renderer to respond. |
181 return DROPEFFECT_NONE; | 181 return DROPEFFECT_NONE; |
182 } | 182 } |
OLD | NEW |