Handle immersive mode in WebUI tab strip's autoclose behavior
In immersive mode, the toolbar floats on top of the tab content. Their bounds intersect. The WebUI tab strip would autoclose whenever an event occured inside the tab content's bounds. However, this didn't consider if the event would ultimately be delivered to browser UI instead. This CL lets events whose locations are in the toolbar pass through. It also adds test coverage for these behaviors. A more robust solution would consider the event's target window rather than just its location, but this is more complex. For now these bounds checks should be sufficient. Bug: 1112028 Change-Id: Id290bacb973bad1db535c7f69122c1d4019571e8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2339591 Commit-Queue: Collin Baker <collinbaker@chromium.org> Reviewed-by:Peter Boström <pbos@chromium.org> Cr-Commit-Position: refs/heads/master@{#795659}
Showing
Please register or sign in to comment