Commit b34354c8 authored by David Bokan's avatar David Bokan Committed by Chromium LUCI CQ

Rename DID_HANDLE_NON_BLOCKING to be not-handled

As mentioned in the removed TODO, the meaning of the "handled" vs
"not-handled" is with respect to the compositor. If the compositor
consumes an event, it is "handled". If it is forwarded to the main
thread, it is "not-handled" (...by the compositor).

DID_HANDLE_NON_BLOCKING is used for events that are sent to the main
thread but marked as non-blocking (because e.g. the touch handler is
marked as passive) so they're ACKed to the browser before being queued
on the MainThreadEventQueue.

Bug: NONE
Change-Id: I31fe64afa15490dfd7b9284f8a961d8e6db17f70
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2200623Reviewed-by: default avatarRobert Flack <flackr@chromium.org>
Reviewed-by: default avatarDave Tapuska <dtapuska@chromium.org>
Commit-Queue: David Bokan <bokan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#843544}
parent c3757411
...@@ -102,7 +102,7 @@ class BLINK_PLATFORM_EXPORT InputHandlerProxy ...@@ -102,7 +102,7 @@ class BLINK_PLATFORM_EXPORT InputHandlerProxy
// will be ACK'ed to the browser before being dispatched to the main // will be ACK'ed to the browser before being dispatched to the main
// thread. // thread.
// TODO(bokan): It's not clear that we need a separate status for this // TODO(bokan): It's not clear that we need a separate status for this
// case, why can't we just use the DID_HANDLE_NON_BLOCKING below? // case, why can't we just use the DID_NOT_HANDLE_NON_BLOCKING below?
DID_NOT_HANDLE_NON_BLOCKING_DUE_TO_FLING, DID_NOT_HANDLE_NON_BLOCKING_DUE_TO_FLING,
// Set to indicate that the event needs to be sent to the main thread (e.g. // Set to indicate that the event needs to be sent to the main thread (e.g.
...@@ -111,10 +111,7 @@ class BLINK_PLATFORM_EXPORT InputHandlerProxy ...@@ -111,10 +111,7 @@ class BLINK_PLATFORM_EXPORT InputHandlerProxy
// passive). Because it isn't cancellable, the event (and future events) // passive). Because it isn't cancellable, the event (and future events)
// will be sent non-blocking and be acked to the browser before being // will be sent non-blocking and be acked to the browser before being
// dispatchehd to the main thread. // dispatchehd to the main thread.
// TODO(bokan): The semantics of DID/DID_NOT HANDLE are whether the main DID_NOT_HANDLE_NON_BLOCKING,
// thread needs to know about the event. In this case, we expect the event
// to be forwarded to the main thread so this should be DID_NOT_HANDLE.
DID_HANDLE_NON_BLOCKING,
// The compositor didn't handle the event but has determined the main // The compositor didn't handle the event but has determined the main
// thread doesn't care about the event either (e.g. it's a touch event and // thread doesn't care about the event either (e.g. it's a touch event and
......
...@@ -60,7 +60,7 @@ static bool HandledOnCompositorThread( ...@@ -60,7 +60,7 @@ static bool HandledOnCompositorThread(
return (disposition != InputHandlerProxy::DID_NOT_HANDLE && return (disposition != InputHandlerProxy::DID_NOT_HANDLE &&
disposition != disposition !=
InputHandlerProxy::DID_NOT_HANDLE_NON_BLOCKING_DUE_TO_FLING && InputHandlerProxy::DID_NOT_HANDLE_NON_BLOCKING_DUE_TO_FLING &&
disposition != InputHandlerProxy::DID_HANDLE_NON_BLOCKING); disposition != InputHandlerProxy::DID_NOT_HANDLE_NON_BLOCKING);
} }
void EventWithCallback::RunCallbacks( void EventWithCallback::RunCallbacks(
......
...@@ -923,7 +923,7 @@ InputHandlerProxy::EventDisposition InputHandlerProxy::HandleMouseWheel( ...@@ -923,7 +923,7 @@ InputHandlerProxy::EventDisposition InputHandlerProxy::HandleMouseWheel(
switch (properties) { switch (properties) {
case cc::EventListenerProperties::kBlockingAndPassive: case cc::EventListenerProperties::kBlockingAndPassive:
case cc::EventListenerProperties::kPassive: case cc::EventListenerProperties::kPassive:
result = DID_HANDLE_NON_BLOCKING; result = DID_NOT_HANDLE_NON_BLOCKING;
break; break;
case cc::EventListenerProperties::kNone: case cc::EventListenerProperties::kNone:
result = DROP_EVENT; result = DROP_EVENT;
...@@ -1182,7 +1182,7 @@ InputHandlerProxy::EventDisposition InputHandlerProxy::HitTestTouchEvent( ...@@ -1182,7 +1182,7 @@ InputHandlerProxy::EventDisposition InputHandlerProxy::HitTestTouchEvent(
*allowed_touch_action != cc::TouchAction::kNone) { *allowed_touch_action != cc::TouchAction::kNone) {
TRACE_EVENT_INSTANT0("input", "NonBlocking due to allowed touchaction", TRACE_EVENT_INSTANT0("input", "NonBlocking due to allowed touchaction",
TRACE_EVENT_SCOPE_THREAD); TRACE_EVENT_SCOPE_THREAD);
result = DID_HANDLE_NON_BLOCKING; result = DID_NOT_HANDLE_NON_BLOCKING;
} else { } else {
TRACE_EVENT_INSTANT0("input", "DidNotHandle due to no touchaction", TRACE_EVENT_INSTANT0("input", "DidNotHandle due to no touchaction",
TRACE_EVENT_SCOPE_THREAD); TRACE_EVENT_SCOPE_THREAD);
...@@ -1200,7 +1200,7 @@ InputHandlerProxy::EventDisposition InputHandlerProxy::HitTestTouchEvent( ...@@ -1200,7 +1200,7 @@ InputHandlerProxy::EventDisposition InputHandlerProxy::HitTestTouchEvent(
"listener", event_listener_class); "listener", event_listener_class);
switch (event_listener_class) { switch (event_listener_class) {
case cc::EventListenerProperties::kPassive: case cc::EventListenerProperties::kPassive:
result = DID_HANDLE_NON_BLOCKING; result = DID_NOT_HANDLE_NON_BLOCKING;
break; break;
case cc::EventListenerProperties::kBlocking: case cc::EventListenerProperties::kBlocking:
// The touch area rects above already have checked whether it hits // The touch area rects above already have checked whether it hits
...@@ -1210,7 +1210,7 @@ InputHandlerProxy::EventDisposition InputHandlerProxy::HitTestTouchEvent( ...@@ -1210,7 +1210,7 @@ InputHandlerProxy::EventDisposition InputHandlerProxy::HitTestTouchEvent(
case cc::EventListenerProperties::kBlockingAndPassive: case cc::EventListenerProperties::kBlockingAndPassive:
// There is at least one passive listener that needs to possibly // There is at least one passive listener that needs to possibly
// be notified so it can't be dropped. // be notified so it can't be dropped.
result = DID_HANDLE_NON_BLOCKING; result = DID_NOT_HANDLE_NON_BLOCKING;
break; break;
case cc::EventListenerProperties::kNone: case cc::EventListenerProperties::kNone:
result = DROP_EVENT; result = DROP_EVENT;
...@@ -1230,12 +1230,12 @@ InputHandlerProxy::EventDisposition InputHandlerProxy::HitTestTouchEvent( ...@@ -1230,12 +1230,12 @@ InputHandlerProxy::EventDisposition InputHandlerProxy::HitTestTouchEvent(
touch_event.GetType() == WebInputEvent::Type::kTouchStart))) { touch_event.GetType() == WebInputEvent::Type::kTouchStart))) {
TRACE_EVENT_INSTANT0("input", "Non blocking due to skip filter", TRACE_EVENT_INSTANT0("input", "Non blocking due to skip filter",
TRACE_EVENT_SCOPE_THREAD); TRACE_EVENT_SCOPE_THREAD);
result = DID_HANDLE_NON_BLOCKING; result = DID_NOT_HANDLE_NON_BLOCKING;
} }
// Merge |touch_result_| and |result| so the result has the highest // Merge |touch_result_| and |result| so the result has the highest
// priority value according to the sequence; (DROP_EVENT, // priority value according to the sequence; (DROP_EVENT,
// DID_HANDLE_NON_BLOCKING, DID_NOT_HANDLE). // DID_NOT_HANDLE_NON_BLOCKING, DID_NOT_HANDLE).
if (!touch_result_.has_value() || touch_result_ == DROP_EVENT || if (!touch_result_.has_value() || touch_result_ == DROP_EVENT ||
result == DID_NOT_HANDLE) { result == DID_NOT_HANDLE) {
TRACE_EVENT_INSTANT2( TRACE_EVENT_INSTANT2(
...@@ -1282,7 +1282,7 @@ InputHandlerProxy::EventDisposition InputHandlerProxy::HandleTouchStart( ...@@ -1282,7 +1282,7 @@ InputHandlerProxy::EventDisposition InputHandlerProxy::HandleTouchStart(
cc::EventListenerProperties::kNone) { cc::EventListenerProperties::kNone) {
TRACE_EVENT_INSTANT0("input", "NonBlocking due to TouchEnd handler", TRACE_EVENT_INSTANT0("input", "NonBlocking due to TouchEnd handler",
TRACE_EVENT_SCOPE_THREAD); TRACE_EVENT_SCOPE_THREAD);
result = DID_HANDLE_NON_BLOCKING; result = DID_NOT_HANDLE_NON_BLOCKING;
} }
bool is_in_inertial_scrolling_on_impl = bool is_in_inertial_scrolling_on_impl =
......
...@@ -667,7 +667,7 @@ TEST_P(InputHandlerProxyTest, MouseWheelNoListener) { ...@@ -667,7 +667,7 @@ TEST_P(InputHandlerProxyTest, MouseWheelNoListener) {
} }
TEST_P(InputHandlerProxyTest, MouseWheelPassiveListener) { TEST_P(InputHandlerProxyTest, MouseWheelPassiveListener) {
expected_disposition_ = InputHandlerProxy::DID_HANDLE_NON_BLOCKING; expected_disposition_ = InputHandlerProxy::DID_NOT_HANDLE_NON_BLOCKING;
EXPECT_CALL(mock_input_handler_, HasBlockingWheelEventHandlerAt(_)) EXPECT_CALL(mock_input_handler_, HasBlockingWheelEventHandlerAt(_))
.WillRepeatedly(testing::Return(false)); .WillRepeatedly(testing::Return(false));
EXPECT_CALL(mock_input_handler_, EXPECT_CALL(mock_input_handler_,
...@@ -735,7 +735,7 @@ TEST_P(InputHandlerProxyTest, MouseWheelEventOutsideBlockingListener) { ...@@ -735,7 +735,7 @@ TEST_P(InputHandlerProxyTest, MouseWheelEventOutsideBlockingListener) {
TEST_P(InputHandlerProxyTest, TEST_P(InputHandlerProxyTest,
MouseWheelEventOutsideBlockingListenerWithPassiveListener) { MouseWheelEventOutsideBlockingListenerWithPassiveListener) {
expected_disposition_ = InputHandlerProxy::DID_HANDLE_NON_BLOCKING; expected_disposition_ = InputHandlerProxy::DID_NOT_HANDLE_NON_BLOCKING;
EXPECT_CALL(mock_input_handler_, EXPECT_CALL(mock_input_handler_,
HasBlockingWheelEventHandlerAt( HasBlockingWheelEventHandlerAt(
testing::Property(&gfx::Point::y, testing::Gt(10)))) testing::Property(&gfx::Point::y, testing::Gt(10))))
...@@ -1405,7 +1405,7 @@ TEST_P(InputHandlerProxyTest, ...@@ -1405,7 +1405,7 @@ TEST_P(InputHandlerProxyTest,
TEST_P(InputHandlerProxyTest, HitTestTouchEventNonNullTouchAction) { TEST_P(InputHandlerProxyTest, HitTestTouchEventNonNullTouchAction) {
// One of the touch points is on a touch-region. So the event should be sent // One of the touch points is on a touch-region. So the event should be sent
// to the main thread. // to the main thread.
expected_disposition_ = InputHandlerProxy::DID_HANDLE_NON_BLOCKING; expected_disposition_ = InputHandlerProxy::DID_NOT_HANDLE_NON_BLOCKING;
VERIFY_AND_RESET_MOCKS(); VERIFY_AND_RESET_MOCKS();
EXPECT_CALL(mock_input_handler_, EXPECT_CALL(mock_input_handler_,
...@@ -1764,7 +1764,7 @@ TEST_P(InputHandlerProxyTest, MultiTouchPointHitTestNegative) { ...@@ -1764,7 +1764,7 @@ TEST_P(InputHandlerProxyTest, MultiTouchPointHitTestNegative) {
TEST_P(InputHandlerProxyTest, MultiTouchPointHitTestPositive) { TEST_P(InputHandlerProxyTest, MultiTouchPointHitTestPositive) {
// One of the touch points is on a touch-region. So the event should be sent // One of the touch points is on a touch-region. So the event should be sent
// to the main thread. // to the main thread.
expected_disposition_ = InputHandlerProxy::DID_HANDLE_NON_BLOCKING; expected_disposition_ = InputHandlerProxy::DID_NOT_HANDLE_NON_BLOCKING;
VERIFY_AND_RESET_MOCKS(); VERIFY_AND_RESET_MOCKS();
EXPECT_CALL(mock_input_handler_, EXPECT_CALL(mock_input_handler_,
...@@ -1812,7 +1812,7 @@ TEST_P(InputHandlerProxyTest, MultiTouchPointHitTestPositive) { ...@@ -1812,7 +1812,7 @@ TEST_P(InputHandlerProxyTest, MultiTouchPointHitTestPositive) {
TEST_P(InputHandlerProxyTest, MultiTouchPointHitTestPassivePositive) { TEST_P(InputHandlerProxyTest, MultiTouchPointHitTestPassivePositive) {
// One of the touch points is not on a touch-region. So the event should be // One of the touch points is not on a touch-region. So the event should be
// sent to the impl thread. // sent to the impl thread.
expected_disposition_ = InputHandlerProxy::DID_HANDLE_NON_BLOCKING; expected_disposition_ = InputHandlerProxy::DID_NOT_HANDLE_NON_BLOCKING;
VERIFY_AND_RESET_MOCKS(); VERIFY_AND_RESET_MOCKS();
EXPECT_CALL( EXPECT_CALL(
...@@ -1831,9 +1831,9 @@ TEST_P(InputHandlerProxyTest, MultiTouchPointHitTestPassivePositive) { ...@@ -1831,9 +1831,9 @@ TEST_P(InputHandlerProxyTest, MultiTouchPointHitTestPassivePositive) {
*touch_action = cc::TouchAction::kPanX; *touch_action = cc::TouchAction::kPanX;
return cc::InputHandler::TouchStartOrMoveEventListenerType::NO_HANDLER; return cc::InputHandler::TouchStartOrMoveEventListenerType::NO_HANDLER;
})); }));
EXPECT_CALL(mock_client_, EXPECT_CALL(mock_client_, SetAllowedTouchAction(
SetAllowedTouchAction(cc::TouchAction::kPanRight, 1, cc::TouchAction::kPanRight, 1,
InputHandlerProxy::DID_HANDLE_NON_BLOCKING)) InputHandlerProxy::DID_NOT_HANDLE_NON_BLOCKING))
.WillOnce(testing::Return()); .WillOnce(testing::Return());
WebTouchEvent touch(WebInputEvent::Type::kTouchStart, WebTouchEvent touch(WebInputEvent::Type::kTouchStart,
...@@ -1859,7 +1859,7 @@ TEST_P(InputHandlerProxyTest, TouchStartPassiveAndTouchEndBlocking) { ...@@ -1859,7 +1859,7 @@ TEST_P(InputHandlerProxyTest, TouchStartPassiveAndTouchEndBlocking) {
// The touch start is not in a touch-region but there is a touch end handler // The touch start is not in a touch-region but there is a touch end handler
// so to maintain targeting we need to dispatch the touch start as // so to maintain targeting we need to dispatch the touch start as
// non-blocking but drop all touch moves. // non-blocking but drop all touch moves.
expected_disposition_ = InputHandlerProxy::DID_HANDLE_NON_BLOCKING; expected_disposition_ = InputHandlerProxy::DID_NOT_HANDLE_NON_BLOCKING;
VERIFY_AND_RESET_MOCKS(); VERIFY_AND_RESET_MOCKS();
EXPECT_CALL( EXPECT_CALL(
...@@ -1876,9 +1876,9 @@ TEST_P(InputHandlerProxyTest, TouchStartPassiveAndTouchEndBlocking) { ...@@ -1876,9 +1876,9 @@ TEST_P(InputHandlerProxyTest, TouchStartPassiveAndTouchEndBlocking) {
*touch_action = cc::TouchAction::kNone; *touch_action = cc::TouchAction::kNone;
return cc::InputHandler::TouchStartOrMoveEventListenerType::NO_HANDLER; return cc::InputHandler::TouchStartOrMoveEventListenerType::NO_HANDLER;
})); }));
EXPECT_CALL(mock_client_, EXPECT_CALL(mock_client_, SetAllowedTouchAction(
SetAllowedTouchAction(cc::TouchAction::kNone, 1, cc::TouchAction::kNone, 1,
InputHandlerProxy::DID_HANDLE_NON_BLOCKING)) InputHandlerProxy::DID_NOT_HANDLE_NON_BLOCKING))
.WillOnce(testing::Return()); .WillOnce(testing::Return());
WebTouchEvent touch(WebInputEvent::Type::kTouchStart, WebTouchEvent touch(WebInputEvent::Type::kTouchStart,
...@@ -1927,7 +1927,7 @@ TEST_P(InputHandlerProxyTest, TouchMoveBlockingAddedAfterPassiveTouchStart) { ...@@ -1927,7 +1927,7 @@ TEST_P(InputHandlerProxyTest, TouchMoveBlockingAddedAfterPassiveTouchStart) {
touch.touch_start_or_first_touch_move = true; touch.touch_start_or_first_touch_move = true;
touch.touches[0] = touch.touches[0] =
CreateWebTouchPoint(WebTouchPoint::State::kStatePressed, 0, 0); CreateWebTouchPoint(WebTouchPoint::State::kStatePressed, 0, 0);
EXPECT_EQ(InputHandlerProxy::DID_HANDLE_NON_BLOCKING, EXPECT_EQ(InputHandlerProxy::DID_NOT_HANDLE_NON_BLOCKING,
HandleInputEventWithLatencyInfo(input_handler_.get(), touch)); HandleInputEventWithLatencyInfo(input_handler_.get(), touch));
EXPECT_CALL(mock_input_handler_, EventListenerTypeForTouchStartOrMoveAt(_, _)) EXPECT_CALL(mock_input_handler_, EventListenerTypeForTouchStartOrMoveAt(_, _))
...@@ -1941,7 +1941,7 @@ TEST_P(InputHandlerProxyTest, TouchMoveBlockingAddedAfterPassiveTouchStart) { ...@@ -1941,7 +1941,7 @@ TEST_P(InputHandlerProxyTest, TouchMoveBlockingAddedAfterPassiveTouchStart) {
touch.touch_start_or_first_touch_move = true; touch.touch_start_or_first_touch_move = true;
touch.touches[0] = touch.touches[0] =
CreateWebTouchPoint(WebTouchPoint::State::kStateMoved, 10, 10); CreateWebTouchPoint(WebTouchPoint::State::kStateMoved, 10, 10);
EXPECT_EQ(InputHandlerProxy::DID_HANDLE_NON_BLOCKING, EXPECT_EQ(InputHandlerProxy::DID_NOT_HANDLE_NON_BLOCKING,
HandleInputEventWithLatencyInfo(input_handler_.get(), touch)); HandleInputEventWithLatencyInfo(input_handler_.get(), touch));
VERIFY_AND_RESET_MOCKS(); VERIFY_AND_RESET_MOCKS();
} }
...@@ -3423,7 +3423,7 @@ TEST_P(InputHandlerProxyMainThreadScrollingReasonTest, ...@@ -3423,7 +3423,7 @@ TEST_P(InputHandlerProxyMainThreadScrollingReasonTest,
EXPECT_CALL(mock_input_handler_, HitTest(_)) EXPECT_CALL(mock_input_handler_, HitTest(_))
.WillOnce(testing::Return(cc::PointerResultType::kUnhandled)); .WillOnce(testing::Return(cc::PointerResultType::kUnhandled));
expected_disposition_ = InputHandlerProxy::DID_HANDLE_NON_BLOCKING; expected_disposition_ = InputHandlerProxy::DID_NOT_HANDLE_NON_BLOCKING;
EXPECT_EQ(expected_disposition_, EXPECT_EQ(expected_disposition_,
HandleInputEventAndFlushEventQueue( HandleInputEventAndFlushEventQueue(
mock_input_handler_, input_handler_.get(), touch_start_)); mock_input_handler_, input_handler_.get(), touch_start_));
...@@ -3472,7 +3472,7 @@ TEST_P(InputHandlerProxyMainThreadScrollingReasonTest, ...@@ -3472,7 +3472,7 @@ TEST_P(InputHandlerProxyMainThreadScrollingReasonTest,
EXPECT_CALL(mock_input_handler_, HitTest(_)) EXPECT_CALL(mock_input_handler_, HitTest(_))
.WillOnce(testing::Return(cc::PointerResultType::kUnhandled)); .WillOnce(testing::Return(cc::PointerResultType::kUnhandled));
expected_disposition_ = InputHandlerProxy::DID_HANDLE_NON_BLOCKING; expected_disposition_ = InputHandlerProxy::DID_NOT_HANDLE_NON_BLOCKING;
EXPECT_EQ(expected_disposition_, EXPECT_EQ(expected_disposition_,
HandleInputEventAndFlushEventQueue( HandleInputEventAndFlushEventQueue(
mock_input_handler_, input_handler_.get(), touch_start_)); mock_input_handler_, input_handler_.get(), touch_start_));
...@@ -3526,7 +3526,7 @@ TEST_P(InputHandlerProxyMainThreadScrollingReasonTest, ...@@ -3526,7 +3526,7 @@ TEST_P(InputHandlerProxyMainThreadScrollingReasonTest,
EXPECT_CALL(mock_input_handler_, HitTest(_)) EXPECT_CALL(mock_input_handler_, HitTest(_))
.WillOnce(testing::Return(cc::PointerResultType::kUnhandled)); .WillOnce(testing::Return(cc::PointerResultType::kUnhandled));
expected_disposition_ = InputHandlerProxy::DID_HANDLE_NON_BLOCKING; expected_disposition_ = InputHandlerProxy::DID_NOT_HANDLE_NON_BLOCKING;
EXPECT_EQ(expected_disposition_, HandleInputEventWithLatencyInfo( EXPECT_EQ(expected_disposition_, HandleInputEventWithLatencyInfo(
input_handler_.get(), touch_start_)); input_handler_.get(), touch_start_));
...@@ -3582,7 +3582,7 @@ TEST_P(InputHandlerProxyMainThreadScrollingReasonTest, ...@@ -3582,7 +3582,7 @@ TEST_P(InputHandlerProxyMainThreadScrollingReasonTest,
EXPECT_CALL(mock_input_handler_, HitTest(_)) EXPECT_CALL(mock_input_handler_, HitTest(_))
.WillOnce(testing::Return(cc::PointerResultType::kUnhandled)); .WillOnce(testing::Return(cc::PointerResultType::kUnhandled));
expected_disposition_ = InputHandlerProxy::DID_HANDLE_NON_BLOCKING; expected_disposition_ = InputHandlerProxy::DID_NOT_HANDLE_NON_BLOCKING;
EXPECT_EQ(expected_disposition_, HandleInputEventWithLatencyInfo( EXPECT_EQ(expected_disposition_, HandleInputEventWithLatencyInfo(
input_handler_.get(), touch_start_)); input_handler_.get(), touch_start_));
...@@ -3685,7 +3685,7 @@ TEST_P(InputHandlerProxyMainThreadScrollingReasonTest, ...@@ -3685,7 +3685,7 @@ TEST_P(InputHandlerProxyMainThreadScrollingReasonTest,
EXPECT_CALL(mock_input_handler_, EXPECT_CALL(mock_input_handler_,
GetEventListenerProperties(cc::EventListenerClass::kMouseWheel)) GetEventListenerProperties(cc::EventListenerClass::kMouseWheel))
.WillOnce(testing::Return(cc::EventListenerProperties::kPassive)); .WillOnce(testing::Return(cc::EventListenerProperties::kPassive));
expected_disposition_ = InputHandlerProxy::DID_HANDLE_NON_BLOCKING; expected_disposition_ = InputHandlerProxy::DID_NOT_HANDLE_NON_BLOCKING;
EXPECT_EQ(expected_disposition_, HandleInputEventWithLatencyInfo( EXPECT_EQ(expected_disposition_, HandleInputEventWithLatencyInfo(
input_handler_.get(), wheel_event_)); input_handler_.get(), wheel_event_));
......
...@@ -79,7 +79,7 @@ mojom::blink::InputEventResultState InputEventDispositionToAck( ...@@ -79,7 +79,7 @@ mojom::blink::InputEventResultState InputEventDispositionToAck(
return mojom::blink::InputEventResultState::kSetNonBlockingDueToFling; return mojom::blink::InputEventResultState::kSetNonBlockingDueToFling;
case InputHandlerProxy::DROP_EVENT: case InputHandlerProxy::DROP_EVENT:
return mojom::blink::InputEventResultState::kNoConsumerExists; return mojom::blink::InputEventResultState::kNoConsumerExists;
case InputHandlerProxy::DID_HANDLE_NON_BLOCKING: case InputHandlerProxy::DID_NOT_HANDLE_NON_BLOCKING:
return mojom::blink::InputEventResultState::kSetNonBlocking; return mojom::blink::InputEventResultState::kSetNonBlocking;
case InputHandlerProxy::REQUIRES_MAIN_THREAD_HIT_TEST: case InputHandlerProxy::REQUIRES_MAIN_THREAD_HIT_TEST:
default: default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment