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

Side by Side Diff: sky/engine/core/frame/NewEventHandler.h

Issue 823873004: Add basic PointerEvent support in NewEventHandler (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Address reviewer comments Created 5 years, 11 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 2015 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 SKY_ENGINE_CORE_FRAME_NEWEVENTHANDLER_H_
6 #define SKY_ENGINE_CORE_FRAME_NEWEVENTHANDLER_H_
7
8 #include "sky/engine/core/dom/Node.h"
9 #include "sky/engine/core/rendering/HitTestRequest.h"
10 #include "sky/engine/core/rendering/HitTestResult.h"
11 #include "sky/engine/wtf/HashMap.h"
12
13 namespace blink {
14
15 class LocalFrame;
16 class WebPointerEvent;
17
18 class NewEventHandler {
19 WTF_MAKE_NONCOPYABLE(NewEventHandler);
20 public:
21 explicit NewEventHandler(LocalFrame*);
esprehn 2015/01/21 02:49:05 reference
22 ~NewEventHandler();
23
24 bool handlePointerEvent(const WebPointerEvent&);
25
26 private:
27 bool handlePointerDownEvent(const WebPointerEvent&);
28 bool handlePointerUpEvent(const WebPointerEvent&);
29 bool handlePointerMoveEvent(const WebPointerEvent&);
30 bool handlePointerCancelEvent(const WebPointerEvent&);
31
32 bool dispatchPointerEventToNode(Node* target, const WebPointerEvent&);
esprehn 2015/01/21 02:49:05 ditto
33 bool dispatchClickEvent(Node* capturingTarget, const WebPointerEvent&);
34
35 Node* targetForHitTestResult(const HitTestResult& hitTestResult);
36 HitTestResult performHitTest(const LayoutPoint&);
37 void updateSelectionForPointerDown(const HitTestResult&, const WebPointerEve nt&);
38
39 typedef HashMap<int, RefPtr<Node>> PointerTargetMap;
40
41 LocalFrame* m_frame;
42 PointerTargetMap m_targetForPointer;
43 };
44
45 }
46
47 #endif // SKY_ENGINE_CORE_FRAME_NEWEVENTHANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698