OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. |
3 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 3 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
4 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) | 4 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 1677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1688 if (!view) | 1688 if (!view) |
1689 return false; | 1689 return false; |
1690 | 1690 |
1691 RefPtrWillBeRawPtr<MouseEvent> me = MouseEvent::create(eventType, | 1691 RefPtrWillBeRawPtr<MouseEvent> me = MouseEvent::create(eventType, |
1692 true, true, m_frame->document()->domWindow(), | 1692 true, true, m_frame->document()->domWindow(), |
1693 0, event.globalPosition().x(), event.globalPosition().y(), event.positio
n().x(), event.position().y(), | 1693 0, event.globalPosition().x(), event.globalPosition().y(), event.positio
n().x(), event.position().y(), |
1694 event.movementDelta().x(), event.movementDelta().y(), | 1694 event.movementDelta().x(), event.movementDelta().y(), |
1695 event.ctrlKey(), event.altKey(), event.shiftKey(), event.metaKey(), | 1695 event.ctrlKey(), event.altKey(), event.shiftKey(), event.metaKey(), |
1696 0, MouseEvent::platformModifiersToButtons(event.modifiers()), nullptr, d
ataTransfer); | 1696 0, MouseEvent::platformModifiersToButtons(event.modifiers()), nullptr, d
ataTransfer); |
1697 | 1697 |
1698 dragTarget->dispatchEvent(me.get(), IGNORE_EXCEPTION); | 1698 dragTarget->dispatchMouseEvent(me.get()); |
| 1699 |
1699 return me->defaultPrevented(); | 1700 return me->defaultPrevented(); |
1700 } | 1701 } |
1701 | 1702 |
1702 static bool targetIsFrame(Node* target, LocalFrame*& frame) | 1703 static bool targetIsFrame(Node* target, LocalFrame*& frame) |
1703 { | 1704 { |
1704 if (!isHTMLFrameElementBase(target)) | 1705 if (!isHTMLFrameElementBase(target)) |
1705 return false; | 1706 return false; |
1706 | 1707 |
1707 // Cross-process drag and drop is not yet supported. | 1708 // Cross-process drag and drop is not yet supported. |
1708 if (toHTMLFrameElementBase(target)->contentFrame() && !toHTMLFrameElementBas
e(target)->contentFrame()->isLocalFrame()) | 1709 if (toHTMLFrameElementBase(target)->contentFrame() && !toHTMLFrameElementBas
e(target)->contentFrame()->isLocalFrame()) |
(...skipping 2470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4179 unsigned EventHandler::accessKeyModifiers() | 4180 unsigned EventHandler::accessKeyModifiers() |
4180 { | 4181 { |
4181 #if OS(MACOSX) | 4182 #if OS(MACOSX) |
4182 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; | 4183 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; |
4183 #else | 4184 #else |
4184 return PlatformEvent::AltKey; | 4185 return PlatformEvent::AltKey; |
4185 #endif | 4186 #endif |
4186 } | 4187 } |
4187 | 4188 |
4188 } // namespace blink | 4189 } // namespace blink |
OLD | NEW |