Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1247)

Side by Side Diff: content/browser/web_contents/web_drag_dest_win.cc

Issue 10014024: TabContents -> WebContentsImpl, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/browser/tab_contents/web_drag_dest_win.h" 5 #include "content/browser/web_contents/web_drag_dest_win.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <shlobj.h> 8 #include <shlobj.h>
9 9
10 #include "content/browser/renderer_host/render_view_host_impl.h" 10 #include "content/browser/renderer_host/render_view_host_impl.h"
11 #include "content/browser/tab_contents/web_drag_utils_win.h" 11 #include "content/browser/web_contents/web_drag_utils_win.h"
12 #include "content/public/browser/web_contents.h" 12 #include "content/public/browser/web_contents.h"
13 #include "content/public/browser/web_drag_dest_delegate.h" 13 #include "content/public/browser/web_drag_dest_delegate.h"
14 #include "googleurl/src/gurl.h" 14 #include "googleurl/src/gurl.h"
15 #include "net/base/net_util.h" 15 #include "net/base/net_util.h"
16 #include "ui/base/clipboard/clipboard_util_win.h" 16 #include "ui/base/clipboard/clipboard_util_win.h"
17 #include "ui/base/dragdrop/os_exchange_data.h" 17 #include "ui/base/dragdrop/os_exchange_data.h"
18 #include "ui/base/dragdrop/os_exchange_data_provider_win.h" 18 #include "ui/base/dragdrop/os_exchange_data_provider_win.h"
19 #include "ui/gfx/point.h" 19 #include "ui/gfx/point.h"
20 #include "webkit/glue/webdropdata.h" 20 #include "webkit/glue/webdropdata.h"
21 #include "webkit/glue/window_open_disposition.h" 21 #include "webkit/glue/window_open_disposition.h"
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 if (delegate_) 200 if (delegate_)
201 delegate_->OnDrop(data_object); 201 delegate_->OnDrop(data_object);
202 202
203 current_rvh_ = NULL; 203 current_rvh_ = NULL;
204 204
205 // This isn't always correct, but at least it's a close approximation. 205 // This isn't always correct, but at least it's a close approximation.
206 // For now, we always map a move to a copy to prevent potential data loss. 206 // For now, we always map a move to a copy to prevent potential data loss.
207 DWORD drop_effect = web_drag_utils_win::WebDragOpToWinDragOp(drag_cursor_); 207 DWORD drop_effect = web_drag_utils_win::WebDragOpToWinDragOp(drag_cursor_);
208 return drop_effect != DROPEFFECT_MOVE ? drop_effect : DROPEFFECT_COPY; 208 return drop_effect != DROPEFFECT_MOVE ? drop_effect : DROPEFFECT_COPY;
209 } 209 }
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_drag_dest_win.h ('k') | content/browser/web_contents/web_drag_source_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698