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

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

Issue 2738063007: Removes unnecessary calls to FocusManager (Closed)
Patch Set: comment Created 3 years, 9 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/ui/views/task_manager_view.h ('k') | ui/app_list/views/folder_header_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/task_manager_view.cc
diff --git a/chrome/browser/ui/views/task_manager_view.cc b/chrome/browser/ui/views/task_manager_view.cc
index 68019e5a5b0db52ec38706549c5d6b556de02b7b..f583bcb23af7e09e49d085e0ab1399b8aa28f09c 100644
--- a/chrome/browser/ui/views/task_manager_view.cc
+++ b/chrome/browser/ui/views/task_manager_view.cc
@@ -101,11 +101,6 @@ task_manager::TaskManagerTableModel* TaskManagerView::Show(Browser* browser) {
g_task_manager_view->SelectTaskOfActiveTab(browser);
g_task_manager_view->GetWidget()->Show();
- // Set the initial focus to the list of tasks.
- views::FocusManager* focus_manager = g_task_manager_view->GetFocusManager();
- if (focus_manager)
- focus_manager->SetFocusedView(g_task_manager_view->tab_table_);
-
#if defined(USE_ASH)
aura::Window* window = g_task_manager_view->GetWidget()->GetNativeWindow();
window->SetProperty<int>(ash::kShelfItemTypeKey, ash::TYPE_DIALOG);
@@ -166,6 +161,10 @@ bool TaskManagerView::AcceleratorPressed(const ui::Accelerator& accelerator) {
return true;
}
+views::View* TaskManagerView::GetInitiallyFocusedView() {
+ return tab_table_;
+}
+
bool TaskManagerView::CanResize() const {
return true;
}
« no previous file with comments | « chrome/browser/ui/views/task_manager_view.h ('k') | ui/app_list/views/folder_header_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698