Chromium Code Reviews
DescriptionMac: Make calling WebContents::WasShown/WasHidden the responsibility of the content layer
This makes it behave the same way as on Aura platforms, and allows a
views::WebView to not worry about calling WasShown/Hidden on Mac.
After this, WasShown no longer needs to be part of the public
WebContents API. However, a lot of calls are still made in tests, so
they will be transitioned to a test header in a follow-up.
On Mac, WasShown was only called for WebContents in browser Tabs (i.e.
when the TabStripController switched tabs). So this change could (in
theory) affect extensions (e.g. BrowserAction popups), Platform Apps,
and PrintPreview. However, since the windows containing these do not
manipulate their view hierarchy, nothing about the behaviour should
actually change.
BUG=587030
Committed: https://crrev.com/65ff2ea7a5599fa69fed2f2bbae68470af0baf97
Cr-Commit-Position: refs/heads/master@{#378605}
Patch Set 1 : plus webview test #Patch Set 2 : Ignore window visibility #Patch Set 3 : fix gn, Handle background tabs #Patch Set 4 : rebase (patch failure) #Patch Set 5 : Likely fix for WebContentsModalDialogManagerViewsMacTest.TwoDialogsThenCloseTabs #Patch Set 6 : rollback unnecessary test diffs #
Total comments: 12
Patch Set 7 : Respond to comments #
Total comments: 3
Dependent Patchsets: Messages
Total messages: 25 (16 generated)
|