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

Unified Diff: third_party/WebKit/Source/platform/exported/WebCoalescedInputEvent.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/platform/exported/WebCoalescedInputEvent.cpp
diff --git a/third_party/WebKit/Source/platform/exported/WebCoalescedInputEvent.cpp b/third_party/WebKit/Source/platform/exported/WebCoalescedInputEvent.cpp
index 4699fb3ed86cfbbbccd07cab900ec046ad28facf..0ae61f0ebd041bb458c94b3741d1adb4fec722c1 100644
--- a/third_party/WebKit/Source/platform/exported/WebCoalescedInputEvent.cpp
+++ b/third_party/WebKit/Source/platform/exported/WebCoalescedInputEvent.cpp
@@ -12,23 +12,23 @@ namespace blink {
namespace {
WebScopedInputEvent makeWebScopedInputEvent(const blink::WebInputEvent& event) {
- if (blink::WebInputEvent::isGestureEventType(event.type)) {
+ if (blink::WebInputEvent::isGestureEventType(event.type())) {
return WebScopedInputEvent(new blink::WebGestureEvent(
static_cast<const blink::WebGestureEvent&>(event)));
}
- if (blink::WebInputEvent::isMouseEventType(event.type)) {
+ if (blink::WebInputEvent::isMouseEventType(event.type())) {
return WebScopedInputEvent(new blink::WebMouseEvent(
static_cast<const blink::WebMouseEvent&>(event)));
}
- if (blink::WebInputEvent::isTouchEventType(event.type)) {
+ if (blink::WebInputEvent::isTouchEventType(event.type())) {
return WebScopedInputEvent(new blink::WebTouchEvent(
static_cast<const blink::WebTouchEvent&>(event)));
}
- if (event.type == blink::WebInputEvent::MouseWheel) {
+ if (event.type() == blink::WebInputEvent::MouseWheel) {
return WebScopedInputEvent(new blink::WebMouseWheelEvent(
static_cast<const blink::WebMouseWheelEvent&>(event)));
}
- if (blink::WebInputEvent::isKeyboardEventType(event.type)) {
+ if (blink::WebInputEvent::isKeyboardEventType(event.type())) {
return WebScopedInputEvent(new blink::WebKeyboardEvent(
static_cast<const blink::WebKeyboardEvent&>(event)));
}
@@ -41,7 +41,7 @@ struct WebInputEventDelete {
bool Execute(WebInputEvent* event) const {
if (!event)
return false;
- DCHECK_EQ(sizeof(EventType), event->size);
+ DCHECK_EQ(sizeof(EventType), event->size());
delete static_cast<EventType*>(event);
return true;
}
@@ -68,7 +68,7 @@ bool Apply(Operator op, WebInputEvent::Type type, const ArgIn& argIn) {
void WebInputEventDeleter::operator()(WebInputEvent* event) const {
if (!event)
return;
- Apply(WebInputEventDelete(), event->type, event);
+ Apply(WebInputEventDelete(), event->type(), event);
}
WebInputEvent* WebCoalescedInputEvent::eventPointer() {

Powered by Google App Engine
This is Rietveld 408576698