From 79a4c1e532a74ac74d72f883e52e30019fe9e731 Mon Sep 17 00:00:00 2001 From: "brettw@chromium.org" Date: Sun, 17 Oct 2010 20:44:38 +0000 Subject: Move BaseDropTarget and BaseDragSource from base to app/win. Remove the "Base" class name prefix and put in the app::win namespace. TEST=none BUG=none Review URL: http://codereview.chromium.org/3822007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62900 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/tools/test_shell/drop_delegate.h | 45 +++++++++++++++------------------ 1 file changed, 21 insertions(+), 24 deletions(-) (limited to 'webkit/tools/test_shell/drop_delegate.h') diff --git a/webkit/tools/test_shell/drop_delegate.h b/webkit/tools/test_shell/drop_delegate.h index 8a1442a..1e13c77 100644 --- a/webkit/tools/test_shell/drop_delegate.h +++ b/webkit/tools/test_shell/drop_delegate.h @@ -1,43 +1,40 @@ -// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 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. // // A class that implements BaseDropTarget for the test shell webview delegate. -#ifndef WEBKIT_TOOLS_TEST_SHELL_DROP_DELEGATE_H__ -#define WEBKIT_TOOLS_TEST_SHELL_DROP_DELEGATE_H__ +#ifndef WEBKIT_TOOLS_TEST_SHELL_DROP_DELEGATE_H_ +#define WEBKIT_TOOLS_TEST_SHELL_DROP_DELEGATE_H_ -#include "base/base_drop_target.h" +#include "app/win/drop_target.h" namespace WebKit { class WebView; } -class TestDropDelegate : public BaseDropTarget { +class TestDropDelegate : public app::win::DropTarget { public: - TestDropDelegate(HWND source_hwnd, WebKit::WebView* webview) - : BaseDropTarget(source_hwnd), - webview_(webview) { } + TestDropDelegate(HWND source_hwnd, WebKit::WebView* webview); protected: - // BaseDropTarget methods - virtual DWORD OnDragEnter(IDataObject* data_object, - DWORD key_state, - POINT cursor_position, - DWORD effect); - virtual DWORD OnDragOver(IDataObject* data_object, - DWORD key_state, - POINT cursor_position, - DWORD effect); - virtual void OnDragLeave(IDataObject* data_object); - virtual DWORD OnDrop(IDataObject* data_object, - DWORD key_state, - POINT cursor_position, - DWORD effect); - + // BaseDropTarget methods + virtual DWORD OnDragEnter(IDataObject* data_object, + DWORD key_state, + POINT cursor_position, + DWORD effect); + virtual DWORD OnDragOver(IDataObject* data_object, + DWORD key_state, + POINT cursor_position, + DWORD effect); + virtual void OnDragLeave(IDataObject* data_object); + virtual DWORD OnDrop(IDataObject* data_object, + DWORD key_state, + POINT cursor_position, + DWORD effect); private: WebKit::WebView* webview_; }; -#endif // WEBKIT_TOOLS_TEST_SHELL_DROP_DELEGATE_H__ +#endif // WEBKIT_TOOLS_TEST_SHELL_DROP_DELEGATE_H_ -- cgit v1.1