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

Side by Side Diff: chrome/browser/ui/views/new_task_manager_view.h

Issue 2146273002: TaskManager: when shown or activated, select the last active tab. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@triple_click_tm
Patch Set: Fix compile. Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_VIEWS_NEW_TASK_MANAGER_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_NEW_TASK_MANAGER_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_NEW_TASK_MANAGER_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_NEW_TASK_MANAGER_VIEW_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 NewTaskManagerView(); 96 NewTaskManagerView();
97 97
98 static NewTaskManagerView* GetInstanceForTests(); 98 static NewTaskManagerView* GetInstanceForTests();
99 99
100 // Creates the child controls. 100 // Creates the child controls.
101 void Init(); 101 void Init();
102 102
103 // Initializes the state of the always-on-top setting as the window is shown. 103 // Initializes the state of the always-on-top setting as the window is shown.
104 void InitAlwaysOnTopState(); 104 void InitAlwaysOnTopState();
105 105
106 // Activates the tab associated with the focused row. 106 // Activates the tab associated with the selected row.
107 void ActivateFocusedTab(); 107 void ActivateSelectedTab();
108
109 // Selects the active tab in the specified browser window.
110 void SelectTaskOfActiveTab(Browser* browser);
108 111
109 // Restores saved "always on top" state from a previous session. 112 // Restores saved "always on top" state from a previous session.
110 void RetrieveSavedAlwaysOnTopState(); 113 void RetrieveSavedAlwaysOnTopState();
111 114
112 std::unique_ptr<TaskManagerTableModel> table_model_; 115 std::unique_ptr<TaskManagerTableModel> table_model_;
113 116
114 std::unique_ptr<views::MenuRunner> menu_runner_; 117 std::unique_ptr<views::MenuRunner> menu_runner_;
115 118
116 // We need to own the text of the menu, the Windows API does not copy it. 119 // We need to own the text of the menu, the Windows API does not copy it.
117 base::string16 always_on_top_menu_text_; 120 base::string16 always_on_top_menu_text_;
118 121
119 views::TableView* tab_table_; 122 views::TableView* tab_table_;
120 views::View* tab_table_parent_; 123 views::View* tab_table_parent_;
121 124
122 // all possible columns, not necessarily visible 125 // all possible columns, not necessarily visible
123 std::vector<ui::TableColumn> columns_; 126 std::vector<ui::TableColumn> columns_;
124 127
125 // True when the Task Manager window should be shown on top of other windows. 128 // True when the Task Manager window should be shown on top of other windows.
126 bool is_always_on_top_; 129 bool is_always_on_top_;
127 130
128 DISALLOW_COPY_AND_ASSIGN(NewTaskManagerView); 131 DISALLOW_COPY_AND_ASSIGN(NewTaskManagerView);
129 }; 132 };
130 133
131 } // namespace task_management 134 } // namespace task_management
132 135
133 #endif // CHROME_BROWSER_UI_VIEWS_NEW_TASK_MANAGER_VIEW_H_ 136 #endif // CHROME_BROWSER_UI_VIEWS_NEW_TASK_MANAGER_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/task_manager/task_manager_table_model.cc ('k') | chrome/browser/ui/views/new_task_manager_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698