Chromium Code Reviews
DescriptionMove NullWebViewClient implementation to chromium layer
Add AwContentsClient#hasWebViewClient so chromium layer knows when the
WebViewClient is null, and can fallback to default implementations.
Then move the default implementations to chrome layer.
Changes in implementation:
Use ContextWrapper instead of view.getContext(). This means the
"context instanceof Activity" check will never return true.
Use ContentViewCore.activityFromContext to check instead.
Call ContentViewClient.shouldOverrideKeyEvent directly instead of
keeping another copy of the implementation.
BUG=464491
Committed: https://crrev.com/1994b54ee3a21f9b9a36a6e83fa5c26cef9606bc
Cr-Commit-Position: refs/heads/master@{#319736}
Patch Set 1 #
Total comments: 3
Patch Set 2 : run time check activity + wrapper #
Total comments: 2
Patch Set 3 : ContentViewCore.activityFromContext #Patch Set 4 : rebase #
Messages
Total messages: 19 (5 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||