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

Unified Diff: sky/engine/core/frame/NewEventHandler.h

Issue 872233002: Switch KeyboardEvents over to NewEventHandler (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: nits 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 side-by-side diff with in-line comments
Download patch
Index: sky/engine/core/frame/NewEventHandler.h
diff --git a/sky/engine/core/frame/NewEventHandler.h b/sky/engine/core/frame/NewEventHandler.h
index bcbb726af22d9a1781c07de0caf89c95dea8bdf6..3bd62ca28ed81ccecd51621575af8b6fdbdc9612 100644
--- a/sky/engine/core/frame/NewEventHandler.h
+++ b/sky/engine/core/frame/NewEventHandler.h
@@ -15,6 +15,7 @@ namespace blink {
class LocalFrame;
class WebGestureEvent;
+class WebKeyboardEvent;
class WebPointerEvent;
class NewEventHandler {
@@ -25,6 +26,7 @@ public:
bool handlePointerEvent(const WebPointerEvent&);
bool handleGestureEvent(const WebGestureEvent&);
+ bool handleKeyboardEvent(const WebKeyboardEvent&);
private:
bool handlePointerDownEvent(const WebPointerEvent&);
@@ -35,7 +37,9 @@ private:
bool dispatchGestureEvent(Node& target, const WebGestureEvent& event);
bool dispatchPointerEvent(Node& target, const WebPointerEvent&);
bool dispatchClickEvent(Node& capturingTarget, const WebPointerEvent&);
+ bool dispatchKeyboardEvent(Node& target, const WebKeyboardEvent& event);
+ Node* targetForKeyboardEvent() const;
Node* targetForHitTestResult(const HitTestResult& hitTestResult);
HitTestResult performHitTest(const LayoutPoint&);
void updateSelectionForPointerDown(const HitTestResult&, const WebPointerEvent&);
@@ -44,6 +48,7 @@ private:
LocalFrame& m_frame;
PointerTargetMap m_targetForPointer;
+ bool m_suppressNextCharEvent;
};
}

Powered by Google App Engine
This is Rietveld 408576698