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

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

Issue 2573073003: Collapse the API surface on WebInputEvent via accessor functions. (Closed)
Patch Set: Fix nits Created 3 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: 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 66ed55dc2d530012be3ea0f046547f6449dc5eb2..f8efadd40a9d663196a3d0b689a182963f12843b 100644
--- a/third_party/WebKit/Source/web/PageWidgetDelegate.cpp
+++ b/third_party/WebKit/Source/web/PageWidgetDelegate.cpp
@@ -117,8 +117,8 @@ WebInputEventResult PageWidgetDelegate::handleInputEvent(
const WebCoalescedInputEvent& coalescedEvent,
LocalFrame* root) {
const WebInputEvent& event = coalescedEvent.event();
- 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));
@@ -137,7 +137,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).
« no previous file with comments | « third_party/WebKit/Source/web/InspectorOverlay.cpp ('k') | third_party/WebKit/Source/web/RemoteFrameClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698