commit | a5c39d5f43575a87c7f6b6c858b3ee5c3be24610 | [log] [tgz] |
---|---|---|
author | danakj <danakj@chromium.org> | Thu Dec 13 22:20:56 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Dec 13 22:20:56 2018 |
tree | cfd680c6acc47493a2fb5c08cbe290fd37897c13 | |
parent | 74573ed6690f185544afd2591fe8312b8cf91258 [diff] |
Clean up WebPagePopup APIs and move them from WebWidget to WebView. This moves WebWidget::GetPagePopup() to WebView, as there is only 1 popup per view, not per widget. WebTest code was grabbing the popup off the WebWidget and is changed to grab it from the WebView instead when the WebWidget is for the main frame (which it always is right now but we add conditions for correctness regardless). WebViewImpl had a bunch of ways to close the current popup, and we remove most of the redundant ways: HideSelectPopup() is removed. HidePopups() is removed, and CancelPagePopup() is changed to replace it. SetLastHiddenPagePopup() is removed from the public API of WebViewImpl as it is no longer used externally, and code inside changed to use the variable directly. WebPagePopupClient::ClosePopup() is renamed to CancelPopup() to give consistent naming throughout the Cancel code. WebViewTestProxy changed to defer WidgetClient() through to the WebViewTestClient, like it does for other methods, and we pass the ProxyWebWidgetClient to the WebViewTestClient for it to hand out, instead of giving it null. R=dcheng@chromium.org TBR= Change-Id: Ibaddec943ead28153290cd03a3d94790ac5d4fe0 Bug: 912193 Reviewed-on: https://chromium-review.googlesource.com/c/1372657 Commit-Queue: danakj <danakj@chromium.org> Reviewed-by: Daniel Cheng <dcheng@chromium.org> Reviewed-by: Avi Drissman <avi@chromium.org> Cr-Commit-Position: refs/heads/master@{#616455}
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 .