summaryrefslogtreecommitdiffstats
path: root/webkit/port/page/chromium/EventHandlerChromium.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/port/page/chromium/EventHandlerChromium.cpp')
-rw-r--r--webkit/port/page/chromium/EventHandlerChromium.cpp17
1 files changed, 4 insertions, 13 deletions
diff --git a/webkit/port/page/chromium/EventHandlerChromium.cpp b/webkit/port/page/chromium/EventHandlerChromium.cpp
index d7082e5..2ac7d07 100644
--- a/webkit/port/page/chromium/EventHandlerChromium.cpp
+++ b/webkit/port/page/chromium/EventHandlerChromium.cpp
@@ -26,7 +26,8 @@
#include "config.h"
#include "EventHandler.h"
-#include "Clipboard.h"
+#include "ChromiumDataObject.h"
+#include "ClipboardChromium.h"
#include "Cursor.h"
#include "FloatPoint.h"
#include "FocusController.h"
@@ -42,11 +43,6 @@
#include "SelectionController.h"
#include "NotImplemented.h"
-#if PLATFORM(WIN_OS)
-#include "ClipboardWin.h"
-#include "WCDataObject.h"
-#endif
-
namespace WebCore {
unsigned EventHandler::s_accessKeyModifiers = PlatformKeyboardEvent::AltKey;
@@ -132,13 +128,8 @@ bool EventHandler::eventActivatedView(const PlatformMouseEvent& event) const
PassRefPtr<Clipboard> EventHandler::createDraggingClipboard() const
{
-#if PLATFORM(WIN_OS)
- COMPtr<WCDataObject> dataObject;
- WCDataObject::createInstance(&dataObject);
- return ClipboardWin::create(true, dataObject.get(), ClipboardWritable);
-#else
- return PassRefPtr<Clipboard>(0);
-#endif
+ RefPtr<ChromiumDataObject> dataObject = ChromiumDataObject::create();
+ return ClipboardChromium::create(true, dataObject.get(), ClipboardWritable);
}
void EventHandler::focusDocumentView()