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

Unified Diff: webkit/tools/test_shell/drop_delegate.cc

Issue 15028002: Delete test_shell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add dummy test_shell build target. Created 7 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 side-by-side diff with in-line comments
Download patch
Index: webkit/tools/test_shell/drop_delegate.cc
diff --git a/webkit/tools/test_shell/drop_delegate.cc b/webkit/tools/test_shell/drop_delegate.cc
deleted file mode 100644
index 069ea416dc9746bd31836f04a4b7a18b77dadc3d..0000000000000000000000000000000000000000
--- a/webkit/tools/test_shell/drop_delegate.cc
+++ /dev/null
@@ -1,75 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "webkit/tools/test_shell/drop_delegate.h"
-
-#include "third_party/WebKit/Source/Platform/chromium/public/WebDragData.h"
-#include "third_party/WebKit/Source/Platform/chromium/public/WebPoint.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
-#include "webkit/glue/webdropdata.h"
-
-using WebKit::WebDragOperation;
-using WebKit::WebDragOperationCopy;
-using WebKit::WebPoint;
-using WebKit::WebView;
-
-TestDropDelegate::TestDropDelegate(HWND source_hwnd, WebKit::WebView* webview)
- : ui::DropTargetWin(source_hwnd),
- webview_(webview) {
-}
-
-DWORD TestDropDelegate::OnDragEnter(IDataObject* data_object,
- DWORD key_state,
- POINT cursor_position,
- DWORD effect) {
- WebDropData drop_data;
- WebDropData::PopulateWebDropData(data_object, &drop_data);
-
- POINT client_pt = cursor_position;
- ScreenToClient(GetHWND(), &client_pt);
- WebDragOperation op = webview_->dragTargetDragEnter(
- drop_data.ToDragData(),
- WebPoint(client_pt.x, client_pt.y),
- WebPoint(cursor_position.x, cursor_position.y),
- WebDragOperationCopy,
- 0);
- // TODO(snej): Pass the real drag operation instead
- return op ? DROPEFFECT_COPY : DROPEFFECT_NONE;
- // TODO(snej): Return the real drop effect constant matching 'op'
-}
-
-DWORD TestDropDelegate::OnDragOver(IDataObject* data_object,
- DWORD key_state,
- POINT cursor_position,
- DWORD effect) {
- POINT client_pt = cursor_position;
- ScreenToClient(GetHWND(), &client_pt);
- WebDragOperation op = webview_->dragTargetDragOver(
- WebPoint(client_pt.x, client_pt.y),
- WebPoint(cursor_position.x, cursor_position.y),
- WebDragOperationCopy,
- 0);
- // TODO(snej): Pass the real drag operation instead
- return op ? DROPEFFECT_COPY : DROPEFFECT_NONE;
- // TODO(snej): Return the real drop effect constant matching 'op'
-}
-
-void TestDropDelegate::OnDragLeave(IDataObject* data_object) {
- webview_->dragTargetDragLeave();
-}
-
-DWORD TestDropDelegate::OnDrop(IDataObject* data_object,
- DWORD key_state,
- POINT cursor_position,
- DWORD effect) {
- POINT client_pt = cursor_position;
- ScreenToClient(GetHWND(), &client_pt);
- webview_->dragTargetDrop(
- WebPoint(client_pt.x, client_pt.y),
- WebPoint(cursor_position.x, cursor_position.y),
- 0);
-
- // webkit win port always returns DROPEFFECT_NONE
- return DROPEFFECT_NONE;
-}

Powered by Google App Engine
This is Rietveld 408576698