forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The change removes GestureDetector used to differentiate between Omnibox taps and long-presses. Long-press gesture has lost all its meaning back when we introduced Search Ready Omnibox and Clipboard support: the omnibox comes up empty (meaning the user cannot use the gesture to select all its content), and cannot use this gesture to directly paste into the omnibox (it's never been directly supported; we have dedicated actions for that). As such, the long-press on the Omnibox does nothing else than focus the Omnibox. The change simplifies metrics reporting and obsoletes the OmniboxFocusReason.OmniboxLongClick action. The change further simplifies the focus flow by removing "set and reset omnibox text": upon Focus event, LocationBarMediator no longer sets the Omnibox text content (which next had to be cleared by the EditUrlSuggestionProcessor). Instead, the LocationBarMediator supplies an empty input right from the start. This works the same way the current logic does, skipping one extra content setting, and simplifying some of the Omnibox interfaces. Change-Id: I067d538c2c0f424603ed520f6d9fbd06c5f5da6f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4803444 Reviewed-by: Theresa Sullivan <twellington@chromium.org> Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com> Commit-Queue: Tomasz Wiszkowski <ender@google.com> Cr-Commit-Position: refs/heads/main@{#1187423}
- Loading branch information
1 parent
2e99090
commit 795632a
Showing
9 changed files
with
17 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters