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

Side by Side Diff: webkit/tools/test_shell/drag_delegate.cc

Issue 174364: Plumb the DragOperation through all the layers between the platform DnD code ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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) 2009 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 "webkit/tools/test_shell/drag_delegate.h" 5 #include "webkit/tools/test_shell/drag_delegate.h"
6 6
7 #include "webkit/api/public/WebPoint.h" 7 #include "webkit/api/public/WebPoint.h"
8 #include "webkit/glue/webview.h" 8 #include "webkit/glue/webview.h"
9 9
10 using WebKit::WebPoint; 10 using WebKit::WebPoint;
(...skipping 17 matching lines...) Expand all
28 } // anonymous namespace 28 } // anonymous namespace
29 29
30 void TestDragDelegate::OnDragSourceCancel() { 30 void TestDragDelegate::OnDragSourceCancel() {
31 OnDragSourceDrop(); 31 OnDragSourceDrop();
32 } 32 }
33 33
34 void TestDragDelegate::OnDragSourceDrop() { 34 void TestDragDelegate::OnDragSourceDrop() {
35 gfx::Point client; 35 gfx::Point client;
36 gfx::Point screen; 36 gfx::Point screen;
37 GetCursorPositions(source_hwnd_, &client, &screen); 37 GetCursorPositions(source_hwnd_, &client, &screen);
38 webview_->DragSourceEndedAt(client, screen); 38 webview_->DragSourceEndedAt(client, screen, WebKit::WebDragOperationCopy);
39 // TODO(snej): Pass the real drag operation instead
39 } 40 }
40 41
41 void TestDragDelegate::OnDragSourceMove() { 42 void TestDragDelegate::OnDragSourceMove() {
42 gfx::Point client; 43 gfx::Point client;
43 gfx::Point screen; 44 gfx::Point screen;
44 GetCursorPositions(source_hwnd_, &client, &screen); 45 GetCursorPositions(source_hwnd_, &client, &screen);
45 webview_->DragSourceMovedTo(client, screen); 46 webview_->DragSourceMovedTo(client, screen);
46 } 47 }
OLDNEW
« no previous file with comments | « webkit/tools/layout_tests/test_expectations.txt ('k') | webkit/tools/test_shell/drop_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698