OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "core/input/EventHandlingUtil.h" | 5 #include "core/input/EventHandlingUtil.h" |
6 | 6 |
7 #include "core/frame/FrameView.h" | 7 #include "core/frame/FrameView.h" |
| 8 #include "core/layout/api/LayoutViewItem.h" |
8 | 9 |
9 namespace blink { | 10 namespace blink { |
10 namespace EventHandlingUtil { | 11 namespace EventHandlingUtil { |
11 | 12 |
12 HitTestResult hitTestResultInFrame(LocalFrame* frame, const LayoutPoint& point,
HitTestRequest::HitTestRequestType hitType) | 13 HitTestResult hitTestResultInFrame(LocalFrame* frame, const LayoutPoint& point,
HitTestRequest::HitTestRequestType hitType) |
13 { | 14 { |
14 HitTestResult result(HitTestRequest(hitType), point); | 15 HitTestResult result(HitTestRequest(hitType), point); |
15 | 16 |
16 if (!frame || frame->contentLayoutItem().isNull()) | 17 if (!frame || frame->contentLayoutItem().isNull()) |
17 return result; | 18 return result; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 case DispatchEventResult::CanceledBeforeDispatch: | 54 case DispatchEventResult::CanceledBeforeDispatch: |
54 return WebInputEventResult::HandledSuppressed; | 55 return WebInputEventResult::HandledSuppressed; |
55 default: | 56 default: |
56 NOTREACHED(); | 57 NOTREACHED(); |
57 return WebInputEventResult::HandledSystem; | 58 return WebInputEventResult::HandledSystem; |
58 } | 59 } |
59 } | 60 } |
60 | 61 |
61 } // namespace EventHandlingUtil | 62 } // namespace EventHandlingUtil |
62 } // namespace blink | 63 } // namespace blink |
OLD | NEW |