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

Side by Side Diff: chrome/browser/tab_contents/web_drop_target.cc

Issue 115012: Move: drag_drop_types, favicon_size, icon_util, insets, path, message_box_fla... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 7 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) 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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_view_win.cc ('k') | chrome/browser/task_manager_resource_providers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698