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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 #include "core/editing/TextIterator.h" | 44 #include "core/editing/TextIterator.h" |
45 #include "core/editing/htmlediting.h" | 45 #include "core/editing/htmlediting.h" |
46 #include "core/events/DOMWindowEventQueue.h" | 46 #include "core/events/DOMWindowEventQueue.h" |
47 #include "core/events/EventPath.h" | 47 #include "core/events/EventPath.h" |
48 #include "core/events/KeyboardEvent.h" | 48 #include "core/events/KeyboardEvent.h" |
49 #include "core/events/MouseEvent.h" | 49 #include "core/events/MouseEvent.h" |
50 #include "core/events/TextEvent.h" | 50 #include "core/events/TextEvent.h" |
51 #include "core/events/TouchEvent.h" | 51 #include "core/events/TouchEvent.h" |
52 #include "core/events/WheelEvent.h" | 52 #include "core/events/WheelEvent.h" |
53 #include "core/fetch/ImageResource.h" | 53 #include "core/fetch/ImageResource.h" |
| 54 #include "core/frame/EventHandlerRegistry.h" |
54 #include "core/frame/FrameView.h" | 55 #include "core/frame/FrameView.h" |
55 #include "core/frame/LocalFrame.h" | 56 #include "core/frame/LocalFrame.h" |
56 #include "core/frame/Settings.h" | 57 #include "core/frame/Settings.h" |
57 #include "core/html/HTMLDialogElement.h" | 58 #include "core/html/HTMLDialogElement.h" |
58 #include "core/html/HTMLFrameElementBase.h" | 59 #include "core/html/HTMLFrameElementBase.h" |
59 #include "core/html/HTMLFrameSetElement.h" | 60 #include "core/html/HTMLFrameSetElement.h" |
60 #include "core/html/HTMLInputElement.h" | 61 #include "core/html/HTMLInputElement.h" |
61 #include "core/inspector/InspectorController.h" | 62 #include "core/inspector/InspectorController.h" |
62 #include "core/loader/FrameLoader.h" | 63 #include "core/loader/FrameLoader.h" |
63 #include "core/loader/FrameLoaderClient.h" | 64 #include "core/loader/FrameLoaderClient.h" |
(...skipping 3483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3547 if (effectiveTouchAction != TouchActionAuto) | 3548 if (effectiveTouchAction != TouchActionAuto) |
3548 m_frame->page()->chrome().client().setTouchAction(effectiveTouch
Action); | 3549 m_frame->page()->chrome().client().setTouchAction(effectiveTouch
Action); |
3549 } | 3550 } |
3550 } | 3551 } |
3551 | 3552 |
3552 m_touchPressed = !allTouchReleased; | 3553 m_touchPressed = !allTouchReleased; |
3553 | 3554 |
3554 // If there's no document receiving touch events, or no handlers on the | 3555 // If there's no document receiving touch events, or no handlers on the |
3555 // document set to receive the events, then we can skip all the rest of | 3556 // document set to receive the events, then we can skip all the rest of |
3556 // this work. | 3557 // this work. |
3557 if (!m_touchSequenceDocument || !m_touchSequenceDocument->hasTouchEventHandl
ers() || !m_touchSequenceDocument->frame()) { | 3558 if (!m_touchSequenceDocument || !m_touchSequenceDocument->frameHost() || !m_
touchSequenceDocument->frameHost()->eventHandlerRegistry().hasEventHandlers(Even
tHandlerRegistry::TouchEvent) || !m_touchSequenceDocument->frame()) { |
3558 if (allTouchReleased) { | 3559 if (allTouchReleased) { |
3559 m_touchSequenceDocument.clear(); | 3560 m_touchSequenceDocument.clear(); |
3560 m_touchSequenceUserGestureToken.clear(); | 3561 m_touchSequenceUserGestureToken.clear(); |
3561 } | 3562 } |
3562 return false; | 3563 return false; |
3563 } | 3564 } |
3564 | 3565 |
3565 // Build up the lists to use for the 'touches', 'targetTouches' and | 3566 // Build up the lists to use for the 'touches', 'targetTouches' and |
3566 // 'changedTouches' attributes in the JS event. See | 3567 // 'changedTouches' attributes in the JS event. See |
3567 // http://www.w3.org/TR/touch-events/#touchevent-interface for how these | 3568 // http://www.w3.org/TR/touch-events/#touchevent-interface for how these |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3817 unsigned EventHandler::accessKeyModifiers() | 3818 unsigned EventHandler::accessKeyModifiers() |
3818 { | 3819 { |
3819 #if OS(MACOSX) | 3820 #if OS(MACOSX) |
3820 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; | 3821 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; |
3821 #else | 3822 #else |
3822 return PlatformEvent::AltKey; | 3823 return PlatformEvent::AltKey; |
3823 #endif | 3824 #endif |
3824 } | 3825 } |
3825 | 3826 |
3826 } // namespace WebCore | 3827 } // namespace WebCore |
OLD | NEW |