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

Unified Diff: chrome/browser/chromeos/login/webui_login_view.cc

Issue 7506004: [ChromeOS] Make WebUILoginView play nicer with focus. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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
« no previous file with comments | « chrome/browser/chromeos/login/webui_login_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/webui_login_view.cc
diff --git a/chrome/browser/chromeos/login/webui_login_view.cc b/chrome/browser/chromeos/login/webui_login_view.cc
index ba055f91747c77a85aa17fd0db1d2db7960ca0ed..47c0f677066162a315269ff1966d7b7abe2b9778 100644
--- a/chrome/browser/chromeos/login/webui_login_view.cc
+++ b/chrome/browser/chromeos/login/webui_login_view.cc
@@ -93,6 +93,7 @@ void WebUILoginView::UpdateWindowType() {
void WebUILoginView::LoadURL(const GURL & url) {
webui_login_->LoadURL(url);
+ webui_login_->RequestFocus();
}
WebUI* WebUILoginView::GetWebUI() {
@@ -211,4 +212,10 @@ bool WebUILoginView::HandleContextMenu(const ContextMenuParams& params) {
#endif
}
+bool WebUILoginView::TakeFocus(bool reverse) {
+ // Forward the focus back to web contents.
+ webui_login_->tab_contents()->FocusThroughTabTraversal(reverse);
+ return true;
+}
+
} // namespace chromeos
« no previous file with comments | « chrome/browser/chromeos/login/webui_login_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698