[tab strip] Update touch drag drop context menu toggle
This CL updates the touch drag drop behavior for the WebUI Tab Strip
such that the context menu is shown on a long tap gesture rather than
a long press. (i.e. after the touch pointer has been lifted off of
the screen vs while the touch pointer is held on the screen).
This aligns with the expected platform behavior on windows and linux.
This change also avoids having the context menu forward gesture
events to the renderer which currently causes issues with nested run
loops.
Bug: 229301
Change-Id: Ib6cb3f6a47333548ca3bee5931a8c3f19ceeac58
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3088106
Reviewed-by: Scott Violet <[email protected]>
Reviewed-by: Roman Arora <[email protected]>
Reviewed-by: Yuheng Huang <[email protected]>
Commit-Queue: Thomas Lukaszewicz <[email protected]>
Cr-Commit-Position: refs/heads/master@{#912453}
diff --git a/chrome/browser/flag_descriptions.cc b/chrome/browser/flag_descriptions.cc
index c693b39..5f1668f0 100644
--- a/chrome/browser/flag_descriptions.cc
+++ b/chrome/browser/flag_descriptions.cc
@@ -5215,6 +5215,12 @@
const char kWebUITabStripName[] = "WebUI tab strip";
const char kWebUITabStripDescription[] =
"When enabled makes use of a WebUI-based tab strip.";
+
+const char kWebUITabStripContextMenuAfterTapName[] =
+ "WebUI tab strip context menu after tap";
+const char kWebUITabStripContextMenuAfterTapDescription[] =
+ "Enables the context menu to appear after a tap gesture rather than "
+ "following a press gesture.";
#endif // BUILDFLAG(ENABLE_WEBUI_TAB_STRIP)
#if BUILDFLAG(ENABLE_WEBUI_TAB_STRIP) && BUILDFLAG(IS_CHROMEOS_ASH)