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

Unified Diff: sky/viewer/document_view.cc

Issue 863253002: Update from https://crrev.com/312600 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 11 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: sky/viewer/document_view.cc
diff --git a/sky/viewer/document_view.cc b/sky/viewer/document_view.cc
index 8125379b263e6f91c9dfd0d514939b9fe1fd8e0e..e71020991ae5c17ae1da99bde3ac5dea662950c1 100644
--- a/sky/viewer/document_view.cc
+++ b/sky/viewer/document_view.cc
@@ -127,7 +127,9 @@ void DocumentView::OnEmbed(
// assuming that we're focused.
web_view_->setFocus(true);
// Needed on android, as the window does not get the focus otherwise.
+#if defined(OS_ANDROID)
root_->SetFocus();
+#endif
root_->AddObserver(this);
}

Powered by Google App Engine
This is Rietveld 408576698