commit | 177ab6469163b4ae7d28abdccd4f44e6e61d4769 | [log] [tgz] |
---|---|---|
author | Tessa Nijssen <tnijssen@google.com> | Sat Jun 09 00:54:50 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Sat Jun 09 00:54:50 2018 |
tree | cd4944fdc8728b640a6de779f0ffa8a02c5d5fa4 | |
parent | 8b0ad9460db0a3cd3fdf56cf23f9c115b7efceb2 [diff] |
[Mac] Created Suggested Text Touch Bar When text is selected in a textfield, the touch bar displays options to replace the selected text. Clicking on one of the options will replace the selected text with the selected option. Currently, there are no functional unit tests for the suggested text touch bar. As functionality is fleshed out, unit tests will be created. A new folder (chrome/browser/ui/cocoa/touchbar) was created to house all files related to the Mac touch bar. The CreditCardAutofillTouchBarController files and the WebTextfieldTouchBarController files were moved to this new folder. Dependencies and header guards were updated to reflect this change. New files: - suggested_text_touch_bar_controller.h - suggested_text_touch_bar_controller.mm - suggested_text_touch_bar_controller_browsertest.mm Moved files: - credit_card_autofill_touch_bar_controller.h - credit_card_autofill_touch_bar_controller.mm - credit_card_autofill_touch_bar_controller_unittest.mm - web_textfield_touch_bar_controller.h - web_textfield_touch_bar_controller.mm BUILD files were updated to accomodate the change in location for the moved files and to include the new files. WebContentsImpl, WebContentsDelegate, and WebContentsObserver were modified so that the SuggestedTextTouchBarController can observe TextInputManager for a change in text selection. A feature flag SuggestedTextTouchBar was created and added to chrome://about so that the new touch bar is disabled by default and can be enabled via command line or chrome://flags with the flag #enable-suggested-text-touch-bar. This CL includes the following browser tests for SuggestedTextTouchBarController: - SetTextTest - TouchBarTest - TextSelectionChangedTest Bug: 717553 Change-Id: Icdd796c5d7ff6f67598b58c6c6c8c17a6a85d004 Reviewed-on: https://chromium-review.googlesource.com/1069495 Commit-Queue: Tessa Nijssen <tnijssen@google.com> Reviewed-by: Avi Drissman <avi@chromium.org> Reviewed-by: Sarah Chan <spqchan@chromium.org> Cr-Commit-Position: refs/heads/master@{#565799}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .