Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(602)

Unified Diff: ui/web_dialogs/web_dialog_web_contents_delegate.cc

Issue 418093005: Do not save and restore View focus on aura::Window focus changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Focus the dialog's views::WebView when its content::WebContents is focused. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/web_dialogs/web_dialog_web_contents_delegate.cc
diff --git a/ui/web_dialogs/web_dialog_web_contents_delegate.cc b/ui/web_dialogs/web_dialog_web_contents_delegate.cc
index ea0006ae79d8e9a20db3fc543db5fdc7faa98ddc..32b7cf747c45cac9404fc8adf832d92345bb02ae 100644
--- a/ui/web_dialogs/web_dialog_web_contents_delegate.cc
+++ b/ui/web_dialogs/web_dialog_web_contents_delegate.cc
@@ -56,6 +56,10 @@ bool WebDialogWebContentsDelegate::IsPopupOrPanel(
return true;
}
+void WebDialogWebContentsDelegate::WebContentsFocused(WebContents* contents) {
+ contents->Focus();
+}
+
bool WebDialogWebContentsDelegate::PreHandleGestureEvent(
WebContents* source,
const blink::WebGestureEvent& event) {

Powered by Google App Engine
This is Rietveld 408576698