|
Removed webControllerDidSuppressDialog: callback.
Replaced with WebStateObserver::DidSuppressDialog callback.
In content dialogs suppression is implemented via a single callback:
WebContentsDelegate::ShouldSuppressDialogs. This callback is called
before showing a dialog.
On iOS implementing the same API would require a roundtrip
(JS->Native->JS). This is because WKWebView does not provide any
callbacks for showing geolocation dialogs. So on iOS dialogs blocking is
implemented in JS as a boolean flag which is set by
WebState::SetShouldSuppressDialogs. Embedder still needs a callback to
know if the dialog was suppressed which is implemented as
WebStateObserver::DidSuppressDialog and require only one JS->Native
message.
BUG= 674991
Review-Url: https://codereview.chromium.org/2755013002
Cr-Commit-Position: refs/heads/master@{#457764}
Committed: https://chromium.googlesource.com/chromium/src/+/e1886452ae27293d06b04655ccae3a25811d62e6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+150 lines, -76 lines) |
Patch |
 |
M |
ios/chrome/browser/tabs/tab.mm
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ios/web/public/test/fakes/crw_test_web_state_observer.h
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ios/web/public/test/fakes/crw_test_web_state_observer.mm
|
View
|
|
3 chunks |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ios/web/public/test/fakes/test_web_state_observer.h
|
View
|
|
3 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ios/web/public/test/fakes/test_web_state_observer.mm
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ios/web/public/test/fakes/test_web_state_observer_util.h
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ios/web/public/web_state/ui/crw_web_delegate.h
|
View
|
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
ios/web/public/web_state/web_state.h
|
View
|
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ios/web/public/web_state/web_state_observer.h
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ios/web/public/web_state/web_state_observer_bridge.h
|
View
|
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ios/web/web_state/ui/crw_web_controller.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ios/web/web_state/ui/crw_web_controller.mm
|
View
|
|
6 chunks |
+6 lines, -12 lines |
0 comments
|
Download
|
 |
M |
ios/web/web_state/ui/crw_web_controller_unittest.mm
|
View
|
|
6 chunks |
+68 lines, -55 lines |
0 comments
|
Download
|
 |
M |
ios/web/web_state/web_state_impl.h
|
View
|
1
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ios/web/web_state/web_state_impl.mm
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ios/web/web_state/web_state_impl_unittest.mm
|
View
|
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ios/web/web_state/web_state_observer_bridge.mm
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ios/web/web_state/web_state_observer_bridge_unittest.mm
|
View
|
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
Total messages: 14 (9 generated)
|