blob: 877710cf5cc8a587c432010fa8f4394db08a781d [file] [log] [blame]
[email protected]79a4c1e2010-10-17 20:44:381// Copyright (c) 2010 The Chromium Authors. All rights reserved.
license.botbf09a502008-08-24 00:55:552// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
initial.commitf5b16fe2008-07-27 00:20:514//
5// A class that implements BaseDropTarget for the test shell webview delegate.
6
[email protected]79a4c1e2010-10-17 20:44:387#ifndef WEBKIT_TOOLS_TEST_SHELL_DROP_DELEGATE_H_
8#define WEBKIT_TOOLS_TEST_SHELL_DROP_DELEGATE_H_
initial.commitf5b16fe2008-07-27 00:20:519
[email protected]02bae0f2011-01-19 20:22:0010#include "ui/base/dragdrop/drop_target.h"
initial.commitf5b16fe2008-07-27 00:20:5111
[email protected]50ae00ef2009-10-19 05:11:0312namespace WebKit {
initial.commitf5b16fe2008-07-27 00:20:5113class WebView;
[email protected]50ae00ef2009-10-19 05:11:0314}
initial.commitf5b16fe2008-07-27 00:20:5115
[email protected]02bae0f2011-01-19 20:22:0016class TestDropDelegate : public ui::DropTarget {
initial.commitf5b16fe2008-07-27 00:20:5117 public:
[email protected]79a4c1e2010-10-17 20:44:3818 TestDropDelegate(HWND source_hwnd, WebKit::WebView* webview);
initial.commitf5b16fe2008-07-27 00:20:5119
20 protected:
[email protected]79a4c1e2010-10-17 20:44:3821 // BaseDropTarget methods
22 virtual DWORD OnDragEnter(IDataObject* data_object,
23 DWORD key_state,
24 POINT cursor_position,
25 DWORD effect);
26 virtual DWORD OnDragOver(IDataObject* data_object,
27 DWORD key_state,
28 POINT cursor_position,
29 DWORD effect);
30 virtual void OnDragLeave(IDataObject* data_object);
31 virtual DWORD OnDrop(IDataObject* data_object,
32 DWORD key_state,
33 POINT cursor_position,
34 DWORD effect);
initial.commitf5b16fe2008-07-27 00:20:5135
36 private:
[email protected]50ae00ef2009-10-19 05:11:0337 WebKit::WebView* webview_;
initial.commitf5b16fe2008-07-27 00:20:5138};
39
[email protected]79a4c1e2010-10-17 20:44:3840#endif // WEBKIT_TOOLS_TEST_SHELL_DROP_DELEGATE_H_