DescriptionFix views::WebView focus for Print Preview and other web dialogs.
Focus the dialog's WebView when its WebContents is focused.
Use a FocusChangeObserver to assist with this task.
BrowserView does this for its WebViews by overriding:
WebContentsDelegate::WebContentsFocused
TODO: Cleanup the WebView/WebContents/etc. focus pattern...
(See Ben's WebView::OnWebContentsFocused TODO)
BUG=368691
TEST=Focusing between the omnibox and print preview dialogs works correctly (the omnibox loses focus, closes any dropdowns, doesn't show cursor/selection).
R=ben@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287082
Patch Set 1 #Patch Set 2 : Focus the WebContents in WebContentsViewAura instead of WebDialogWebContentsDelegate. #Patch Set 3 : Use a FocusChangeObserver to assist constrained web dialogs. #
Total comments: 2
Patch Set 4 : Use aura::Window* instead of gfx::NativeView. #Patch Set 5 : Add missing OVERRIDE keyword. #Messages
Total messages: 16 (0 generated)
|