|
|
Created:
6 years, 8 months ago by jdduke (slow) Modified:
6 years, 7 months ago CC:
chromium-reviews, darin-cc_chromium.org, jam, Ben Goodger (Google) Base URL:
https://chromium.googlesource.com/chromium/src.git@master Visibility:
Public. |
Description[Android] Reland "Provide unhandled tap event notifications"
Allow notifications of unhandled taps via the GestureStateListener. This change
makes GestureTap events blocking, but there are several use-cases for which this
will be necessary, e.g., WebView and contextual search.
This patch has quite the history, having landed in r26143 and r266732 only to be
reverted in r261470 and r266832 because of a flaky test. The text has been
(hopefully, probably) fixed with additional input from the test owner.
BUG=355154
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=267258
Patch Set 1 #Patch Set 2 : Fix build #Patch Set 3 : Fix test #Patch Set 4 : Really fix the test #Patch Set 5 : Fix browsertest #Patch Set 6 : Honestly... #Patch Set 7 : Really now #
Total comments: 2
Patch Set 8 : Fixtest++ #Patch Set 9 : Comment #Patch Set 10 : Rebase #Patch Set 11 : Fix for browser test #Patch Set 12 : Rebase #Patch Set 13 : Rebase #Patch Set 14 : Fixes... #Patch Set 15 : Sigh, let's try again #Patch Set 16 : Review per mohsen@ #
Messages
Total messages: 82 (0 generated)
PTAL. mkosiba@, eventually we'll need to adapt the API for it to be of immediate use to your proposed listener API (need the touch id), but it turns out there are other people interested in this notification (donnd@ and the contextual search folks). tdresser@: I know we fought to make GestureTap non-blocking, and I thought of special-casing the exception for Android, but Android is probably the primary platform that benefits from a non-blocking GestureTap =/
lgtm Thanks for doing this!
On 2014/03/31 22:46:10, Donn Denman wrote: > lgtm > > Thanks for doing this! Yeah, I'm in favor of consistency between Aura and Android here. SGTM.
lgtm although it looks like you have a legit content_browsertests failure
tedchoc@: Owner review for content/public/android? Thanks.
content/public/android - lgtm
The CQ bit was checked by jdduke@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/218633008/40001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: tryserver.chromium on linux_chromium_rel
The CQ bit was checked by jdduke@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/218633008/60001
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/218633008/60001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
The CQ bit was checked by jdduke@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/218633008/60001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
The CQ bit was checked by jdduke@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/218633008/60001
The CQ bit was unchecked by commit-bot@chromium.org
Commit queue rejected this change because the description was changed between the time the change entered the commit queue and the time it was ready to commit. You can safely check the commit box again.
The CQ bit was checked by jdduke@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/218633008/60001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
The CQ bit was checked by jdduke@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/218633008/60001
The CQ bit was unchecked by commit-bot@chromium.org
Commit queue rejected this change because the description was changed between the time the change entered the commit queue and the time it was ready to commit. You can safely check the commit box again.
The CQ bit was checked by jdduke@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/218633008/60001
Message was sent while issue was closed.
Change committed as 261431
Message was sent while issue was closed.
A revert of this CL has been created in https://codereview.chromium.org/224273002/ by jdduke@chromium.org. The reason for reverting is: Legitimate browsertest failure..
Message was sent while issue was closed.
ben@: Review for content/browser/web_contents/touch_editable_impl_aura_browsertest.cc? Thanks.
https://codereview.chromium.org/218633008/diff/110001/content/browser/web_con... File content/browser/web_contents/touch_editable_impl_aura_browsertest.cc (right): https://codereview.chromium.org/218633008/diff/110001/content/browser/web_con... content/browser/web_contents/touch_editable_impl_aura_browsertest.cc:329: blink::WebInputEvent::GestureTap)) { tdresser@: What am I missing here? Looks like this test is still failing...
https://codereview.chromium.org/218633008/diff/110001/content/browser/web_con... File content/browser/web_contents/touch_editable_impl_aura_browsertest.cc (right): https://codereview.chromium.org/218633008/diff/110001/content/browser/web_con... content/browser/web_contents/touch_editable_impl_aura_browsertest.cc:329: blink::WebInputEvent::GestureTap)) { On 2014/04/04 03:26:53, jdduke wrote: > tdresser@: What am I missing here? Looks like this test is still failing... Hmmm, I can't repro the failure locally, with a "use_aura=1 use_ash=1 chromeos=1" build... I'm really not sure what's going on here. Are you positive that waiting for the ack waits long enough? Do you need to: touch_editable->Reset(); touch_editable->WaitForGestureAck(); touch_editable->WaitForSelectionChangeCallback();
sky@: I think ben@ may be out of town? Looking for OWNER approval for content/browser/web_contents/touch_editable_impl_aura_browsertest.cc. Thanks.
content/browser/web_contents/touch_editable_impl_aura_browsertest.cc LGTM
The CQ bit was checked by jdduke@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/218633008/150001
Message was sent while issue was closed.
Change committed as 262497
Message was sent while issue was closed.
A revert of this CL has been created in https://codereview.chromium.org/229373002/ by tapted@chromium.org. The reason for reverting is: TouchEditableImplAuraTest.TouchCursorInTextfieldTest failing in the waterfall on Linux ChromiumOS Tests (2) link: http://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%2....
Message was sent while issue was closed.
On 2014/04/08 21:58:52, tapted wrote: > A revert of this CL has been created in > https://codereview.chromium.org/229373002/ by mailto:tapted@chromium.org. > > The reason for reverting is: > TouchEditableImplAuraTest.TouchCursorInTextfieldTest failing in the waterfall on > Linux ChromiumOS Tests (2) > link: > http://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%2.... ... I give up... The CQ is failing me.
The CQ bit was checked by jdduke@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/218633008/180001
The CQ bit was unchecked by jdduke@chromium.org
The CQ bit was checked by jdduke@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/218633008/180001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: tryserver.chromium on chromium_presubmit
The CQ bit was checked by jdduke@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/218633008/200001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: tryserver.chromium on chromium_presubmit
The CQ bit was checked by jdduke@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/218633008/200001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: tryserver.chromium on chromium_presubmit
The CQ bit was checked by jdduke@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/218633008/200001
The CQ bit was unchecked by commit-bot@chromium.org
Failed to apply patch for content/browser/renderer_host/input/input_router_impl_unittest.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file content/browser/renderer_host/input/input_router_impl_unittest.cc Hunk #1 FAILED at 1285. Hunk #2 FAILED at 1312. 2 out of 2 hunks FAILED -- saving rejects to file content/browser/renderer_host/input/input_router_impl_unittest.cc.rej Patch: content/browser/renderer_host/input/input_router_impl_unittest.cc Index: content/browser/renderer_host/input/input_router_impl_unittest.cc diff --git a/content/browser/renderer_host/input/input_router_impl_unittest.cc b/content/browser/renderer_host/input/input_router_impl_unittest.cc index 0fbb1b32c4a2c05cd16c607cf58641bb71e6c430..fd5a84034ba4f57d97c6dcbbfa956f4b5fc536ed 100644 --- a/content/browser/renderer_host/input/input_router_impl_unittest.cc +++ b/content/browser/renderer_host/input/input_router_impl_unittest.cc @@ -1285,12 +1285,17 @@ TEST_F(InputRouterImplTest, DoubleTapGestureDependsOnFirstTap) { EXPECT_EQ(1U, GetSentMessageCountAndResetSink()); // The GestureTapUnconfirmed is converted into a tap, as the touch action is - // auto. + // none. SimulateGestureEvent(WebInputEvent::GestureTapUnconfirmed, WebGestureEvent::Touchscreen); + EXPECT_EQ(1U, GetSentMessageCountAndResetSink()); + // This test will become invalid if GestureTap stops requiring an ack. + ASSERT_TRUE(!WebInputEventTraits::IgnoresAckDisposition( + WebInputEvent::GestureTap)); + EXPECT_EQ(2, client_->in_flight_event_count()); SendInputEventACK(WebInputEvent::GestureTap, INPUT_EVENT_ACK_STATE_CONSUMED); - EXPECT_EQ(1U, GetSentMessageCountAndResetSink()); + EXPECT_EQ(1, client_->in_flight_event_count()); // This tap gesture is dropped, since the GestureTapUnconfirmed was turned // into a tap. @@ -1312,8 +1317,10 @@ TEST_F(InputRouterImplTest, DoubleTapGestureDependsOnFirstTap) { SimulateGestureEvent(WebInputEvent::GestureDoubleTap, WebGestureEvent::Touchscreen); // This test will become invalid if GestureDoubleTap stops requiring an ack. - DCHECK(!WebInputEventTraits::IgnoresAckDisposition( + ASSERT_TRUE(!WebInputEventTraits::IgnoresAckDisposition( WebInputEvent::GestureDoubleTap)); + EXPECT_EQ(1, client_->in_flight_event_count()); + SendInputEventACK(WebInputEvent::GestureTap, INPUT_EVENT_ACK_STATE_CONSUMED); EXPECT_EQ(0, client_->in_flight_event_count()); }
The CQ bit was checked by jdduke@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/218633008/220001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_clang_dbg
The CQ bit was checked by jdduke@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/218633008/250001
The CQ bit was unchecked by jdduke@chromium.org
The CQ bit was checked by jdduke@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/218633008/270001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium
The CQ bit was checked by jdduke@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/218633008/270001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium
The CQ bit was checked by jdduke@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/218633008/270001
Message was sent while issue was closed.
Change committed as 267258 |