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

Unified Diff: third_party/WebKit/Source/web/PageWidgetDelegate.h

Issue 2479123003: WIP Add getCoalescedEvents API using vector of WebInputEvents (Closed)
Patch Set: Creating CoalescedWebInputEvent Created 4 years, 1 month 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: third_party/WebKit/Source/web/PageWidgetDelegate.h
diff --git a/third_party/WebKit/Source/web/PageWidgetDelegate.h b/third_party/WebKit/Source/web/PageWidgetDelegate.h
index 4a810b26eb6598a4e513a500a23cb6a894c01b59..29a327706b2b1029c2dff25d777a191b63869ef5 100644
--- a/third_party/WebKit/Source/web/PageWidgetDelegate.h
+++ b/third_party/WebKit/Source/web/PageWidgetDelegate.h
@@ -31,8 +31,8 @@
#ifndef PageWidgetDelegate_h
#define PageWidgetDelegate_h
+#include "public/platform/CoalescedWebInputEvent.h"
#include "public/platform/WebCanvas.h"
-#include "public/platform/WebInputEvent.h"
#include "public/web/WebWidget.h"
#include "web/WebExport.h"
@@ -49,7 +49,9 @@ class WebTouchEvent;
class WEB_EXPORT PageWidgetEventHandler {
public:
- virtual void handleMouseMove(LocalFrame& mainFrame, const WebMouseEvent&);
+ virtual void handleMouseMove(LocalFrame& mainFrame,
+ const WebMouseEvent&,
+ const std::vector<const WebInputEvent*>&);
virtual void handleMouseLeave(LocalFrame& mainFrame, const WebMouseEvent&);
virtual void handleMouseDown(LocalFrame& mainFrame, const WebMouseEvent&);
virtual void handleMouseUp(LocalFrame& mainFrame, const WebMouseEvent&);
@@ -58,8 +60,10 @@ class WEB_EXPORT PageWidgetEventHandler {
virtual WebInputEventResult handleKeyEvent(const WebKeyboardEvent&) = 0;
virtual WebInputEventResult handleCharEvent(const WebKeyboardEvent&) = 0;
virtual WebInputEventResult handleGestureEvent(const WebGestureEvent&) = 0;
- virtual WebInputEventResult handleTouchEvent(LocalFrame& mainFrame,
- const WebTouchEvent&);
+ virtual WebInputEventResult handleTouchEvent(
+ LocalFrame& mainFrame,
+ const WebTouchEvent&,
+ const std::vector<const WebInputEvent*>&);
virtual ~PageWidgetEventHandler() {}
};
@@ -82,7 +86,7 @@ class PageWidgetDelegate {
// See FIXME in the function body about nullptr |root|.
static WebInputEventResult handleInputEvent(PageWidgetEventHandler&,
- const WebInputEvent&,
+ const CoalescedWebInputEvent&,
LocalFrame* root);
private:

Powered by Google App Engine
This is Rietveld 408576698