Add an option to TabGridDialog menu to edit group name
This CL adds and option to the TabGridDialog toolbar menu to update the group name. Also, this CL cleans up a bit the dependency relationship between title text focus and keyboard visibility, so that keyboard visibility is controlled by title text focus. When title gains focus, we try to show the keyboard; when title text loses focus, we hide the keyboard. Apart from the above rule of thumb, we handle three cases specifically: * When "Edit group name" item is selected in dialog menu, we request focus programmatically which also shows the keyboard. * When keyboard hides but the title still has focus, we manually clear the focus. * When dialog hides, we always clear focus on dialog title. This CL is gated by Finch parameter "enable_launch_polish" under flag "enable-tab-grid-layout", with gate function TabUiFeatureUtilities#isLaunchPolishEnabled. This CL is verified by the formal equivalence tool in http://crrev.com/c/1934235 to be completely behind flag. Bug: 1116644 Change-Id: I208807435cc27ffb3536e6ccbc30f96380f1e766 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2386376Reviewed-by:Wei-Yin Chen (陳威尹) <wychen@chromium.org> Commit-Queue: Yue Zhang <yuezhanggg@chromium.org> Cr-Commit-Position: refs/heads/master@{#806746}
Showing
Please register or sign in to comment