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

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

Issue 2573073003: Collapse the API surface on WebInputEvent via accessor functions. (Closed)
Patch Set: Created 4 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/Source/web/PageWidgetDelegate.cpp
diff --git a/third_party/WebKit/Source/web/PageWidgetDelegate.cpp b/third_party/WebKit/Source/web/PageWidgetDelegate.cpp
index e16d29ea8b0d5fc3041af772c21c477136107d12..25856e23fe6cfad08df78e14bed69f874ce1013b 100644
--- a/third_party/WebKit/Source/web/PageWidgetDelegate.cpp
+++ b/third_party/WebKit/Source/web/PageWidgetDelegate.cpp
@@ -116,8 +116,8 @@ WebInputEventResult PageWidgetDelegate::handleInputEvent(
PageWidgetEventHandler& handler,
const WebInputEvent& event,
LocalFrame* root) {
- if (event.modifiers & WebInputEvent::IsTouchAccessibility &&
- WebInputEvent::isMouseEventType(event.type)) {
+ if (event.modifiers() & WebInputEvent::IsTouchAccessibility &&
+ WebInputEvent::isMouseEventType(event.type())) {
PlatformMouseEventBuilder pme(root->view(),
static_cast<const WebMouseEvent&>(event));
@@ -136,7 +136,7 @@ WebInputEventResult PageWidgetDelegate::handleInputEvent(
}
}
- switch (event.type) {
+ switch (event.type()) {
// FIXME: WebKit seems to always return false on mouse events processing
// methods. For now we'll assume it has processed them (as we are only
// interested in whether keyboard events are processed).

Powered by Google App Engine
This is Rietveld 408576698