| 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/html/HTMLDialogElement.h" | 57 #include "core/html/HTMLDialogElement.h" |
| 57 #include "core/html/HTMLFrameElementBase.h" | 58 #include "core/html/HTMLFrameElementBase.h" |
| 58 #include "core/html/HTMLFrameSetElement.h" | 59 #include "core/html/HTMLFrameSetElement.h" |
| 59 #include "core/html/HTMLInputElement.h" | 60 #include "core/html/HTMLInputElement.h" |
| 60 #include "core/loader/FrameLoader.h" | 61 #include "core/loader/FrameLoader.h" |
| 61 #include "core/loader/FrameLoaderClient.h" | 62 #include "core/loader/FrameLoaderClient.h" |
| 62 #include "core/page/AutoscrollController.h" | 63 #include "core/page/AutoscrollController.h" |
| 63 #include "core/page/BackForwardClient.h" | 64 #include "core/page/BackForwardClient.h" |
| (...skipping 3423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3487 if (effectiveTouchAction != TouchActionAuto) | 3488 if (effectiveTouchAction != TouchActionAuto) |
| 3488 m_frame->page()->chrome().client().setTouchAction(effectiveTouch
Action); | 3489 m_frame->page()->chrome().client().setTouchAction(effectiveTouch
Action); |
| 3489 } | 3490 } |
| 3490 } | 3491 } |
| 3491 | 3492 |
| 3492 m_touchPressed = !allTouchReleased; | 3493 m_touchPressed = !allTouchReleased; |
| 3493 | 3494 |
| 3494 // If there's no document receiving touch events, or no handlers on the | 3495 // If there's no document receiving touch events, or no handlers on the |
| 3495 // document set to receive the events, then we can skip all the rest of | 3496 // document set to receive the events, then we can skip all the rest of |
| 3496 // this work. | 3497 // this work. |
| 3497 if (!m_touchSequenceDocument || !m_touchSequenceDocument->hasTouchEventHandl
ers() || !m_touchSequenceDocument->frame()) { | 3498 if (!m_touchSequenceDocument || !m_touchSequenceDocument->frameHost() || !m_
touchSequenceDocument->frameHost()->eventHandlerRegistry().hasEventHandlers(Even
tHandlerRegistry::TouchEvent) || !m_touchSequenceDocument->frame()) { |
| 3498 if (allTouchReleased) { | 3499 if (allTouchReleased) { |
| 3499 m_touchSequenceDocument.clear(); | 3500 m_touchSequenceDocument.clear(); |
| 3500 m_touchSequenceUserGestureToken.clear(); | 3501 m_touchSequenceUserGestureToken.clear(); |
| 3501 } | 3502 } |
| 3502 return false; | 3503 return false; |
| 3503 } | 3504 } |
| 3504 | 3505 |
| 3505 // Build up the lists to use for the 'touches', 'targetTouches' and | 3506 // Build up the lists to use for the 'touches', 'targetTouches' and |
| 3506 // 'changedTouches' attributes in the JS event. See | 3507 // 'changedTouches' attributes in the JS event. See |
| 3507 // http://www.w3.org/TR/touch-events/#touchevent-interface for how these | 3508 // http://www.w3.org/TR/touch-events/#touchevent-interface for how these |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3759 unsigned EventHandler::accessKeyModifiers() | 3760 unsigned EventHandler::accessKeyModifiers() |
| 3760 { | 3761 { |
| 3761 #if OS(MACOSX) | 3762 #if OS(MACOSX) |
| 3762 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; | 3763 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; |
| 3763 #else | 3764 #else |
| 3764 return PlatformEvent::AltKey; | 3765 return PlatformEvent::AltKey; |
| 3765 #endif | 3766 #endif |
| 3766 } | 3767 } |
| 3767 | 3768 |
| 3768 } // namespace WebCore | 3769 } // namespace WebCore |
| OLD | NEW |