| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/clipboard/clipboard_util_win.h" |
| 10 #include "app/os_exchange_data.h" | 11 #include "app/os_exchange_data.h" |
| 11 #include "app/os_exchange_data_provider_win.h" | 12 #include "app/os_exchange_data_provider_win.h" |
| 12 #include "base/clipboard_util.h" | |
| 13 #include "base/gfx/point.h" | 13 #include "base/gfx/point.h" |
| 14 #include "chrome/browser/renderer_host/render_view_host.h" | 14 #include "chrome/browser/renderer_host/render_view_host.h" |
| 15 #include "chrome/browser/tab_contents/tab_contents.h" | 15 #include "chrome/browser/tab_contents/tab_contents.h" |
| 16 #include "googleurl/src/gurl.h" | 16 #include "googleurl/src/gurl.h" |
| 17 #include "net/base/net_util.h" | 17 #include "net/base/net_util.h" |
| 18 #include "webkit/glue/webdropdata.h" | 18 #include "webkit/glue/webdropdata.h" |
| 19 #include "webkit/glue/window_open_disposition.h" | 19 #include "webkit/glue/window_open_disposition.h" |
| 20 | 20 |
| 21 using WebKit::WebDragOperationCopy; | 21 using WebKit::WebDragOperationCopy; |
| 22 | 22 |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 tab_contents_->render_view_host()->DragTargetDrop( | 178 tab_contents_->render_view_host()->DragTargetDrop( |
| 179 gfx::Point(client_pt.x, client_pt.y), | 179 gfx::Point(client_pt.x, client_pt.y), |
| 180 gfx::Point(cursor_position.x, cursor_position.y)); | 180 gfx::Point(cursor_position.x, cursor_position.y)); |
| 181 | 181 |
| 182 current_rvh_ = NULL; | 182 current_rvh_ = NULL; |
| 183 | 183 |
| 184 // We lie and always claim that the drop operation didn't happen because we | 184 // We lie and always claim that the drop operation didn't happen because we |
| 185 // don't want to wait for the renderer to respond. | 185 // don't want to wait for the renderer to respond. |
| 186 return DROPEFFECT_NONE; | 186 return DROPEFFECT_NONE; |
| 187 } | 187 } |
| OLD | NEW |