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

Unified Diff: chrome/browser/views/task_manager_view.cc

Issue 3038031: Set the initial focus when the task manager first activates and shows. Also,... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 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
« no previous file with comments | « no previous file | views/controls/native_control.cc » ('j') | views/controls/native_control.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/task_manager_view.cc
===================================================================
--- chrome/browser/views/task_manager_view.cc (revision 53803)
+++ chrome/browser/views/task_manager_view.cc (working copy)
@@ -484,6 +484,11 @@
instance_->InitAlwaysOnTopState();
instance_->model_->StartUpdating();
instance_->window()->Show();
+
+ // Set the initial focus to the list of tasks.
+ views::FocusManager* focus_manager = instance_->GetFocusManager();
+ if (focus_manager)
+ focus_manager->SetFocusedView(instance_->tab_table_);
}
}
« no previous file with comments | « no previous file | views/controls/native_control.cc » ('j') | views/controls/native_control.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698