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

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

Issue 18868005: content: Migrate from googleurl/ includes to url/ ones. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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/web_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 "base/win/win_util.h" 10 #include "base/win/win_util.h"
11 #include "content/browser/renderer_host/render_view_host_impl.h" 11 #include "content/browser/renderer_host/render_view_host_impl.h"
12 #include "content/browser/web_contents/web_drag_utils_win.h" 12 #include "content/browser/web_contents/web_drag_utils_win.h"
13 #include "content/public/browser/web_contents.h" 13 #include "content/public/browser/web_contents.h"
14 #include "content/public/browser/web_contents_delegate.h" 14 #include "content/public/browser/web_contents_delegate.h"
15 #include "content/public/browser/web_drag_dest_delegate.h" 15 #include "content/public/browser/web_drag_dest_delegate.h"
16 #include "content/public/common/drop_data.h" 16 #include "content/public/common/drop_data.h"
17 #include "googleurl/src/gurl.h"
18 #include "net/base/net_util.h" 17 #include "net/base/net_util.h"
19 #include "third_party/WebKit/public/web/WebInputEvent.h" 18 #include "third_party/WebKit/public/web/WebInputEvent.h"
20 #include "ui/base/clipboard/clipboard_util_win.h" 19 #include "ui/base/clipboard/clipboard_util_win.h"
21 #include "ui/base/dragdrop/os_exchange_data.h" 20 #include "ui/base/dragdrop/os_exchange_data.h"
22 #include "ui/base/dragdrop/os_exchange_data_provider_win.h" 21 #include "ui/base/dragdrop/os_exchange_data_provider_win.h"
23 #include "ui/base/window_open_disposition.h" 22 #include "ui/base/window_open_disposition.h"
24 #include "ui/gfx/point.h" 23 #include "ui/gfx/point.h"
24 #include "url/gurl.h"
25 25
26 using WebKit::WebDragOperationNone; 26 using WebKit::WebDragOperationNone;
27 using WebKit::WebDragOperationCopy; 27 using WebKit::WebDragOperationCopy;
28 using WebKit::WebDragOperationLink; 28 using WebKit::WebDragOperationLink;
29 using WebKit::WebDragOperationMove; 29 using WebKit::WebDragOperationMove;
30 using WebKit::WebDragOperationGeneric; 30 using WebKit::WebDragOperationGeneric;
31 31
32 namespace content { 32 namespace content {
33 namespace { 33 namespace {
34 34
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 // This isn't always correct, but at least it's a close approximation. 277 // This isn't always correct, but at least it's a close approximation.
278 // For now, we always map a move to a copy to prevent potential data loss. 278 // For now, we always map a move to a copy to prevent potential data loss.
279 DWORD drop_effect = WebDragOpToWinDragOp(drag_cursor_); 279 DWORD drop_effect = WebDragOpToWinDragOp(drag_cursor_);
280 DWORD result = drop_effect != DROPEFFECT_MOVE ? drop_effect : DROPEFFECT_COPY; 280 DWORD result = drop_effect != DROPEFFECT_MOVE ? drop_effect : DROPEFFECT_COPY;
281 281
282 drop_data_.reset(); 282 drop_data_.reset();
283 return result; 283 return result;
284 } 284 }
285 285
286 } // namespace content 286 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/interstitial_page_impl.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