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

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

Issue 2255323004: Create MouseEventManager and EventHandlingUtil (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef EventHandlingUtil_h
6 #define EventHandlingUtil_h
7
8 #include "core/frame/LocalFrame.h"
9 #include "core/layout/HitTestResult.h"
10 #include "platform/geometry/LayoutPoint.h"
11 #include "public/platform/WebInputEventResult.h"
12
13 namespace blink {
14
15 namespace EventHandlingUtil {
16
17 class BoundaryEventDispatcher {
18 public:
19 DEFINE_INLINE_VIRTUAL_TRACE() {}
20 virtual void dispatchOut(EventTarget*, EventTarget* relatedTarget) = 0;
21 virtual void dispatchOver(EventTarget*, EventTarget* relatedTarget) = 0;
22 virtual void dispatchLeave(EventTarget*, EventTarget* relatedTarget, bool ch eckForListener) = 0;
23 virtual void dispatchEnter(EventTarget*, EventTarget* relatedTarget, bool ch eckForListener) = 0;
24 };
25
26 HitTestResult hitTestResultInFrame(LocalFrame*, const LayoutPoint&,
27 HitTestRequest::HitTestRequestType hitType = HitTestRequest::ReadOnly
28 | HitTestRequest::Active);
29
30 WebInputEventResult mergeEventResult(
31 WebInputEventResult resultA, WebInputEventResult resultB);
32 WebInputEventResult toWebInputEventResult(DispatchEventResult);
33
34 void sendBoundaryEvents(
35 EventTarget* exitedTarget,
36 EventTarget* enteredTarget,
37 BoundaryEventDispatcher*);
38
39 } // namespace EventHandlingUtil
40
41 } // namespace blink
42
43 #endif // EventHandlingUtil_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698