OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights |
3 * reserved. | 3 * reserved. |
4 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 4 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
5 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) | 5 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) |
6 * | 6 * |
7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
9 * are met: | 9 * are met: |
10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
(...skipping 10 matching lines...) Expand all Loading... |
21 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | 21 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
22 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | 22 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
23 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | 23 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
24 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 */ | 27 */ |
28 | 28 |
29 #include "core/input/EventHandler.h" | 29 #include "core/input/EventHandler.h" |
30 | 30 |
| 31 #include <memory> |
31 #include "bindings/core/v8/ExceptionState.h" | 32 #include "bindings/core/v8/ExceptionState.h" |
32 #include "core/HTMLNames.h" | 33 #include "core/HTMLNames.h" |
33 #include "core/InputTypeNames.h" | 34 #include "core/InputTypeNames.h" |
34 #include "core/clipboard/DataTransfer.h" | 35 #include "core/clipboard/DataTransfer.h" |
35 #include "core/dom/DOMNodeIds.h" | 36 #include "core/dom/DOMNodeIds.h" |
36 #include "core/dom/Document.h" | 37 #include "core/dom/Document.h" |
37 #include "core/dom/DocumentUserGestureToken.h" | 38 #include "core/dom/DocumentUserGestureToken.h" |
38 #include "core/dom/TaskRunnerHelper.h" | 39 #include "core/dom/TaskRunnerHelper.h" |
39 #include "core/dom/TouchList.h" | 40 #include "core/dom/TouchList.h" |
40 #include "core/dom/shadow/FlatTreeTraversal.h" | 41 #include "core/dom/shadow/FlatTreeTraversal.h" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 #include "platform/heap/Handle.h" | 94 #include "platform/heap/Handle.h" |
94 #include "platform/instrumentation/tracing/TraceEvent.h" | 95 #include "platform/instrumentation/tracing/TraceEvent.h" |
95 #include "platform/scroll/ScrollAnimatorBase.h" | 96 #include "platform/scroll/ScrollAnimatorBase.h" |
96 #include "platform/scroll/Scrollbar.h" | 97 #include "platform/scroll/Scrollbar.h" |
97 #include "public/platform/WebInputEvent.h" | 98 #include "public/platform/WebInputEvent.h" |
98 #include "public/platform/WebMouseWheelEvent.h" | 99 #include "public/platform/WebMouseWheelEvent.h" |
99 #include "wtf/Assertions.h" | 100 #include "wtf/Assertions.h" |
100 #include "wtf/CurrentTime.h" | 101 #include "wtf/CurrentTime.h" |
101 #include "wtf/PtrUtil.h" | 102 #include "wtf/PtrUtil.h" |
102 #include "wtf/StdLibExtras.h" | 103 #include "wtf/StdLibExtras.h" |
103 #include <memory> | |
104 | 104 |
105 namespace blink { | 105 namespace blink { |
106 | 106 |
107 namespace { | 107 namespace { |
108 | 108 |
109 // Refetch the event target node if it is removed or currently is the shadow | 109 // Refetch the event target node if it is removed or currently is the shadow |
110 // node inside an <input> element. If a mouse event handler changes the input | 110 // node inside an <input> element. If a mouse event handler changes the input |
111 // element type to one that has a widget associated, we'd like to | 111 // element type to one that has a widget associated, we'd like to |
112 // EventHandler::handleMousePressEvent to pass the event to the widget and thus | 112 // EventHandler::handleMousePressEvent to pass the event to the widget and thus |
113 // the event target node can't still be the shadow node. | 113 // the event target node can't still be the shadow node. |
(...skipping 2018 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2132 } | 2132 } |
2133 | 2133 |
2134 FrameHost* EventHandler::frameHost() const { | 2134 FrameHost* EventHandler::frameHost() const { |
2135 if (!m_frame->page()) | 2135 if (!m_frame->page()) |
2136 return nullptr; | 2136 return nullptr; |
2137 | 2137 |
2138 return &m_frame->page()->frameHost(); | 2138 return &m_frame->page()->frameHost(); |
2139 } | 2139 } |
2140 | 2140 |
2141 } // namespace blink | 2141 } // namespace blink |
OLD | NEW |