commit | 38ca7b11c3df03e49e29d49375492b32c30040b0 | [log] [tgz] |
---|---|---|
author | spqchan <spqchan@chromium.org> | Thu Jul 26 18:59:47 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Jul 26 18:59:47 2018 |
tree | 646841bc089ba0807f3006eb227ac21a596ea36b | |
parent | a9c90e793e323dc4789a5c502d3cfd920faf39d1 [diff] |
[MacViews] Hook Web Content Textfield Touch Bar Support Reland of https://chromium-review.googlesource.com/c/chromium/src/+/1135829 The previous CL got reverted because the touch bar is initialized in the BrowserWindowTouchBarControllerTest, which causes issues if the touch bar API is not available. This CL addresses that issue by only creating the BrowserWindowTouchBarController when the API is available. Remove Cocoa dependency from WebTextfieldTouchBar by moving it from TabContentsController to BrowserWindowTouchBarController. Hook up BrowserWindowTouchBarController to AutofillPopupControllerImplMac on MacViews so that the credit card touch bar can be updated. Move the the logic that listens to WebContent changes to the BrowserWindowTouchBarController. When the WebContents has changed, BrowserWindowTouchBarController will update the WebContents in BrowserWindowDefaultTouchBar and WebTextfieldTouchBarController. Modified SuggestedTextTouchBarController so that when its WebContents has changed, it'll observe the new WebContents. Bug: 856391 Change-Id: Ic3dfb002ecec6574502c3f1a4cdd32e9edb713f4 Reviewed-on: https://chromium-review.googlesource.com/1135829 Reviewed-by: Avi Drissman <avi@chromium.org> Commit-Queue: Sarah Chan <spqchan@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#577940} Reviewed-on: https://chromium-review.googlesource.com/1151613 Cr-Commit-Position: refs/heads/master@{#578390}
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 .