Index: Source/web/WebViewImpl.cpp |
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp |
index 06e1c3efd3a9d6a137123b869811287b1502407b..6a61e7d029517a81b214a1cda6d49ce2dfda44a1 100644 |
--- a/Source/web/WebViewImpl.cpp |
+++ b/Source/web/WebViewImpl.cpp |
@@ -233,20 +233,6 @@ STATIC_ASSERT_MATCHING_ENUM(DragOperationEvery); |
static bool shouldUseExternalPopupMenus = false; |
-static int webInputEventKeyStateToPlatformEventKeyState(int webInputEventKeyState) |
-{ |
- int platformEventKeyState = 0; |
- if (webInputEventKeyState & WebInputEvent::ShiftKey) |
- platformEventKeyState = platformEventKeyState | PlatformEvent::ShiftKey; |
- if (webInputEventKeyState & WebInputEvent::ControlKey) |
- platformEventKeyState = platformEventKeyState | PlatformEvent::CtrlKey; |
- if (webInputEventKeyState & WebInputEvent::AltKey) |
- platformEventKeyState = platformEventKeyState | PlatformEvent::AltKey; |
- if (webInputEventKeyState & WebInputEvent::MetaKey) |
- platformEventKeyState = platformEventKeyState | PlatformEvent::MetaKey; |
- return platformEventKeyState; |
-} |
- |
namespace { |
class UserGestureNotifier { |
@@ -3582,25 +3568,25 @@ WebDragOperation WebViewImpl::dragTargetDragEnter( |
const WebPoint& clientPoint, |
const WebPoint& screenPoint, |
WebDragOperationsMask operationsAllowed, |
- int keyModifiers) |
+ int modifiers) |
{ |
ASSERT(!m_currentDragData); |
m_currentDragData = webDragData.getValue(); |
m_operationsAllowed = operationsAllowed; |
- return dragTargetDragEnterOrOver(clientPoint, screenPoint, DragEnter, keyModifiers); |
+ return dragTargetDragEnterOrOver(clientPoint, screenPoint, DragEnter, modifiers); |
} |
WebDragOperation WebViewImpl::dragTargetDragOver( |
const WebPoint& clientPoint, |
const WebPoint& screenPoint, |
WebDragOperationsMask operationsAllowed, |
- int keyModifiers) |
+ int modifiers) |
{ |
m_operationsAllowed = operationsAllowed; |
- return dragTargetDragEnterOrOver(clientPoint, screenPoint, DragOver, keyModifiers); |
+ return dragTargetDragEnterOrOver(clientPoint, screenPoint, DragOver, modifiers); |
} |
void WebViewImpl::dragTargetDragLeave() |
@@ -3623,7 +3609,7 @@ void WebViewImpl::dragTargetDragLeave() |
void WebViewImpl::dragTargetDrop(const WebPoint& clientPoint, |
const WebPoint& screenPoint, |
- int keyModifiers) |
+ int modifiers) |
{ |
ASSERT(m_currentDragData); |
@@ -3642,7 +3628,7 @@ void WebViewImpl::dragTargetDrop(const WebPoint& clientPoint, |
return; |
} |
- m_currentDragData->setModifierKeyState(webInputEventKeyStateToPlatformEventKeyState(keyModifiers)); |
+ m_currentDragData->setModifiers(toPlatformMouseEventModifiers(modifiers)); |
DragData dragData( |
m_currentDragData.get(), |
clientPoint, |
@@ -3680,11 +3666,11 @@ void WebViewImpl::removeSpellingMarkersUnderWords(const WebVector<WebString>& wo |
} |
} |
-WebDragOperation WebViewImpl::dragTargetDragEnterOrOver(const WebPoint& clientPoint, const WebPoint& screenPoint, DragAction dragAction, int keyModifiers) |
+WebDragOperation WebViewImpl::dragTargetDragEnterOrOver(const WebPoint& clientPoint, const WebPoint& screenPoint, DragAction dragAction, int modifiers) |
{ |
ASSERT(m_currentDragData); |
- m_currentDragData->setModifierKeyState(webInputEventKeyStateToPlatformEventKeyState(keyModifiers)); |
+ m_currentDragData->setModifiers(toPlatformMouseEventModifiers(modifiers)); |
DragData dragData( |
m_currentDragData.get(), |
clientPoint, |