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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 #include "core/style/ComputedStyle.h" | 87 #include "core/style/ComputedStyle.h" |
88 #include "core/style/CursorData.h" | 88 #include "core/style/CursorData.h" |
89 #include "platform/RuntimeEnabledFeatures.h" | 89 #include "platform/RuntimeEnabledFeatures.h" |
90 #include "platform/WindowsKeyboardCodes.h" | 90 #include "platform/WindowsKeyboardCodes.h" |
91 #include "platform/geometry/FloatPoint.h" | 91 #include "platform/geometry/FloatPoint.h" |
92 #include "platform/graphics/Image.h" | 92 #include "platform/graphics/Image.h" |
93 #include "platform/heap/Handle.h" | 93 #include "platform/heap/Handle.h" |
94 #include "platform/instrumentation/tracing/TraceEvent.h" | 94 #include "platform/instrumentation/tracing/TraceEvent.h" |
95 #include "platform/scroll/ScrollAnimatorBase.h" | 95 #include "platform/scroll/ScrollAnimatorBase.h" |
96 #include "platform/scroll/Scrollbar.h" | 96 #include "platform/scroll/Scrollbar.h" |
| 97 #include "platform/wtf/Assertions.h" |
| 98 #include "platform/wtf/CurrentTime.h" |
| 99 #include "platform/wtf/PtrUtil.h" |
| 100 #include "platform/wtf/StdLibExtras.h" |
97 #include "public/platform/WebInputEvent.h" | 101 #include "public/platform/WebInputEvent.h" |
98 #include "public/platform/WebMouseWheelEvent.h" | 102 #include "public/platform/WebMouseWheelEvent.h" |
99 #include "wtf/Assertions.h" | |
100 #include "wtf/CurrentTime.h" | |
101 #include "wtf/PtrUtil.h" | |
102 #include "wtf/StdLibExtras.h" | |
103 | 103 |
104 namespace blink { | 104 namespace blink { |
105 | 105 |
106 namespace { | 106 namespace { |
107 | 107 |
108 // Refetch the event target node if it is removed or currently is the shadow | 108 // Refetch the event target node if it is removed or currently is the shadow |
109 // node inside an <input> element. If a mouse event handler changes the input | 109 // node inside an <input> element. If a mouse event handler changes the input |
110 // element type to one that has a FrameViewBase associated, we'd like to | 110 // element type to one that has a FrameViewBase associated, we'd like to |
111 // EventHandler::handleMousePressEvent to pass the event to the FrameViewBase | 111 // EventHandler::handleMousePressEvent to pass the event to the FrameViewBase |
112 // and thus the event target node can't still be the shadow node. | 112 // and thus the event target node can't still be the shadow node. |
(...skipping 1998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2111 MouseEventWithHitTestResults& mev, | 2111 MouseEventWithHitTestResults& mev, |
2112 LocalFrame* subframe) { | 2112 LocalFrame* subframe) { |
2113 WebInputEventResult result = | 2113 WebInputEventResult result = |
2114 subframe->GetEventHandler().HandleMouseReleaseEvent(mev.Event()); | 2114 subframe->GetEventHandler().HandleMouseReleaseEvent(mev.Event()); |
2115 if (result != WebInputEventResult::kNotHandled) | 2115 if (result != WebInputEventResult::kNotHandled) |
2116 return result; | 2116 return result; |
2117 return WebInputEventResult::kHandledSystem; | 2117 return WebInputEventResult::kHandledSystem; |
2118 } | 2118 } |
2119 | 2119 |
2120 } // namespace blink | 2120 } // namespace blink |
OLD | NEW |