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

Unified Diff: content/renderer/input/main_thread_event_queue.cc

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: content/renderer/input/main_thread_event_queue.cc
diff --git a/content/renderer/input/main_thread_event_queue.cc b/content/renderer/input/main_thread_event_queue.cc
index 8f53838c56a89efd7508790f4ec6a2509817bf5a..120206aaa8e492b759d3522e0587869a25e37029 100644
--- a/content/renderer/input/main_thread_event_queue.cc
+++ b/content/renderer/input/main_thread_event_queue.cc
@@ -15,7 +15,7 @@ namespace {
const size_t kTenSeconds = 10 * 1000 * 1000;
bool IsContinuousEvent(const std::unique_ptr<EventWithDispatchType>& event) {
- switch (event->event().type) {
+ switch (event->event().type()) {
case blink::WebInputEvent::MouseMove:
case blink::WebInputEvent::MouseWheel:
case blink::WebInputEvent::TouchMove:
@@ -90,8 +90,8 @@ bool MainThreadEventQueue::HandleEvent(
bool non_blocking = original_dispatch_type == DISPATCH_TYPE_NON_BLOCKING ||
ack_result == INPUT_EVENT_ACK_STATE_SET_NON_BLOCKING;
- bool is_wheel = event->type == blink::WebInputEvent::MouseWheel;
- bool is_touch = blink::WebInputEvent::isTouchEventType(event->type);
+ bool is_wheel = event->type() == blink::WebInputEvent::MouseWheel;
+ bool is_touch = blink::WebInputEvent::isTouchEventType(event->type());
if (is_touch) {
blink::WebTouchEvent* touch_event =
@@ -103,7 +103,7 @@ bool MainThreadEventQueue::HandleEvent(
touch_event->dispatchType =
blink::WebInputEvent::ListenersNonBlockingPassive;
}
- if (touch_event->type == blink::WebInputEvent::TouchStart)
+ if (touch_event->type() == blink::WebInputEvent::TouchStart)
last_touch_start_forced_nonblocking_due_to_fling_ = false;
if (enable_fling_passive_listener_flag_ &&
@@ -330,7 +330,7 @@ bool MainThreadEventQueue::IsRafAlignedInputDisabled() {
bool MainThreadEventQueue::IsRafAlignedEvent(
const blink::WebInputEvent& event) {
- switch (event.type) {
+ switch (event.type()) {
case blink::WebInputEvent::MouseMove:
case blink::WebInputEvent::MouseWheel:
return handle_raf_aligned_mouse_input_;
« no previous file with comments | « content/renderer/input/input_handler_manager.cc ('k') | content/renderer/input/main_thread_event_queue_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698