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

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

Issue 149296: Make the cancelling of drag and drop match Safari for Windows. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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) 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 #if defined(OS_WIN) 5 #if defined(OS_WIN)
6 #include <atlbase.h> 6 #include <atlbase.h>
7 #include <atlapp.h> 7 #include <atlapp.h>
8 #include <atlmisc.h> 8 #include <atlmisc.h>
9 #endif 9 #endif
10 10
(...skipping 30 matching lines...) Expand all
41 // when a NULL render_view_host is passed to us. I think this is what is 41 // when a NULL render_view_host is passed to us. I think this is what is
42 // happening but it is hard to tell since the minidump is not helpful in this 42 // happening but it is hard to tell since the minidump is not helpful in this
43 // case. At least we can then rule that out. 43 // case. At least we can then rule that out.
44 CHECK(render_view_host_); 44 CHECK(render_view_host_);
45 } 45 }
46 46
47 void WebDragSource::OnDragSourceCancel() { 47 void WebDragSource::OnDragSourceCancel() {
48 gfx::Point client; 48 gfx::Point client;
49 gfx::Point screen; 49 gfx::Point screen;
50 GetCursorPositions(source_wnd_, &client, &screen); 50 GetCursorPositions(source_wnd_, &client, &screen);
51 render_view_host_->DragSourceEndedAt(client.x(), client.y(), 51 render_view_host_->DragSourceCancelledAt(client.x(), client.y(),
52 screen.x(), screen.y()); 52 screen.x(), screen.y());
53 } 53 }
54 54
55 void WebDragSource::OnDragSourceDrop() { 55 void WebDragSource::OnDragSourceDrop() {
56 gfx::Point client; 56 gfx::Point client;
57 gfx::Point screen; 57 gfx::Point screen;
58 GetCursorPositions(source_wnd_, &client, &screen); 58 GetCursorPositions(source_wnd_, &client, &screen);
59 render_view_host_->DragSourceEndedAt(client.x(), client.y(), 59 render_view_host_->DragSourceEndedAt(client.x(), client.y(),
60 screen.x(), screen.y()); 60 screen.x(), screen.y());
61 } 61 }
62 62
63 void WebDragSource::OnDragSourceMove() { 63 void WebDragSource::OnDragSourceMove() {
64 gfx::Point client; 64 gfx::Point client;
65 gfx::Point screen; 65 gfx::Point screen;
66 GetCursorPositions(source_wnd_, &client, &screen); 66 GetCursorPositions(source_wnd_, &client, &screen);
67 render_view_host_->DragSourceMovedTo(client.x(), client.y(), 67 render_view_host_->DragSourceMovedTo(client.x(), client.y(),
68 screen.x(), screen.y()); 68 screen.x(), screen.y());
69 } 69 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.cc ('k') | chrome/common/render_messages_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698