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

Unified Diff: content/shell/shell.cc

Issue 8052004: Set focus to content area after navigating so that it has focus (matches what chrome does). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/shell.cc
===================================================================
--- content/shell/shell.cc (revision 102852)
+++ content/shell/shell.cc (working copy)
@@ -81,18 +81,22 @@
GURL(),
PageTransition::TYPED,
std::string());
+ tab_contents_->Focus();
}
void Shell::GoBackOrForward(int offset) {
tab_contents_->controller().GoToOffset(offset);
+ tab_contents_->Focus();
}
void Shell::Reload() {
tab_contents_->controller().Reload(false);
+ tab_contents_->Focus();
}
void Shell::Stop() {
tab_contents_->Stop();
+ tab_contents_->Focus();
}
void Shell::UpdateNavigationControls() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698