Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(153)

Side by Side Diff: third_party/WebKit/Source/core/input/EventHandlingUtil.cpp

Issue 2316533004: Don't include headers from the layout API from other headers needlessly. (Closed)
Patch Set: The runway sure is slippery today. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp ('k') | third_party/WebKit/Source/core/input/ScrollManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698