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

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

Issue 293001: Delete glue/webview{_delegate}.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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
« no previous file with comments | « webkit/tools/test_shell/drag_delegate.h ('k') | webkit/tools/test_shell/drop_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/api/public/WebView.h"
9 9
10 using WebKit::WebPoint; 10 using WebKit::WebPoint;
11 using WebKit::WebView;
11 12
12 namespace { 13 namespace {
13 14
14 void GetCursorPositions(HWND hwnd, gfx::Point* client, gfx::Point* screen) { 15 void GetCursorPositions(HWND hwnd, gfx::Point* client, gfx::Point* screen) {
15 // GetCursorPos will fail if the input desktop isn't the current desktop. 16 // GetCursorPos will fail if the input desktop isn't the current desktop.
16 // See http://b/1173534. (0,0) is wrong, but better than uninitialized. 17 // See http://b/1173534. (0,0) is wrong, but better than uninitialized.
17 POINT pos; 18 POINT pos;
18 if (!GetCursorPos(&pos)) { 19 if (!GetCursorPos(&pos)) {
19 pos.x = 0; 20 pos.x = 0;
20 pos.y = 0; 21 pos.y = 0;
(...skipping 17 matching lines...) Expand all
38 webview_->dragSourceEndedAt(client, screen, WebKit::WebDragOperationCopy); 39 webview_->dragSourceEndedAt(client, screen, WebKit::WebDragOperationCopy);
39 // TODO(snej): Pass the real drag operation instead 40 // TODO(snej): Pass the real drag operation instead
40 } 41 }
41 42
42 void TestDragDelegate::OnDragSourceMove() { 43 void TestDragDelegate::OnDragSourceMove() {
43 gfx::Point client; 44 gfx::Point client;
44 gfx::Point screen; 45 gfx::Point screen;
45 GetCursorPositions(source_hwnd_, &client, &screen); 46 GetCursorPositions(source_hwnd_, &client, &screen);
46 webview_->dragSourceMovedTo(client, screen); 47 webview_->dragSourceMovedTo(client, screen);
47 } 48 }
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/drag_delegate.h ('k') | webkit/tools/test_shell/drop_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698