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

Unified Diff: third_party/WebKit/public/web/WebWidget.h

Issue 1463823003: Return a enumeration of the state of handling of InputEvents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years 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/public/web/WebWidget.h
diff --git a/third_party/WebKit/public/web/WebWidget.h b/third_party/WebKit/public/web/WebWidget.h
index 7849a13beeabf272f96618fcd393bba8df20a41f..ceb006fab242ba7440712515e0060f2649f0d4de 100644
--- a/third_party/WebKit/public/web/WebWidget.h
+++ b/third_party/WebKit/public/web/WebWidget.h
@@ -36,6 +36,7 @@
#include "../platform/WebCommon.h"
#include "../platform/WebFloatSize.h"
#include "../platform/WebFrameTimingEvent.h"
+#include "../platform/WebInputEventResult.h"
#include "../platform/WebPoint.h"
#include "../platform/WebRect.h"
#include "../platform/WebSize.h"
@@ -121,9 +122,8 @@ public:
// on receiving this message
virtual void themeChanged() { }
- // Called to inform the WebWidget of an input event. Returns true if
- // the event has been processed, false otherwise.
- virtual bool handleInputEvent(const WebInputEvent&) { return false; }
+ // Called to inform the WebWidget of an input event.
+ virtual WebInputEventResult handleInputEvent(const WebInputEvent&) { return WebInputEventResult::NotHandled; }
// Called to inform the WebWidget of the mouse cursor's visibility.
virtual void setCursorVisibilityState(bool isVisible) { }

Powered by Google App Engine
This is Rietveld 408576698