OLD | NEW |
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_TASK_MANAGER_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TASK_MANAGER_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_TASK_MANAGER_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 void SelectTaskOfActiveTab(Browser* browser); | 108 void SelectTaskOfActiveTab(Browser* browser); |
109 | 109 |
110 // Restores saved "always on top" state from a previous session. | 110 // Restores saved "always on top" state from a previous session. |
111 void RetrieveSavedAlwaysOnTopState(); | 111 void RetrieveSavedAlwaysOnTopState(); |
112 | 112 |
113 std::unique_ptr<TaskManagerTableModel> table_model_; | 113 std::unique_ptr<TaskManagerTableModel> table_model_; |
114 | 114 |
115 std::unique_ptr<ui::SimpleMenuModel> menu_model_; | 115 std::unique_ptr<ui::SimpleMenuModel> menu_model_; |
116 std::unique_ptr<views::MenuRunner> menu_runner_; | 116 std::unique_ptr<views::MenuRunner> menu_runner_; |
117 | 117 |
118 // We need to own the text of the menu, the Windows API does not copy it. | |
119 base::string16 always_on_top_menu_text_; | |
120 | |
121 views::TableView* tab_table_; | 118 views::TableView* tab_table_; |
122 views::View* tab_table_parent_; | 119 views::View* tab_table_parent_; |
123 | 120 |
124 // all possible columns, not necessarily visible | 121 // all possible columns, not necessarily visible |
125 std::vector<ui::TableColumn> columns_; | 122 std::vector<ui::TableColumn> columns_; |
126 | 123 |
127 // True when the Task Manager window should be shown on top of other windows. | 124 // True when the Task Manager window should be shown on top of other windows. |
128 bool is_always_on_top_; | 125 bool is_always_on_top_; |
129 | 126 |
130 DISALLOW_COPY_AND_ASSIGN(TaskManagerView); | 127 DISALLOW_COPY_AND_ASSIGN(TaskManagerView); |
131 }; | 128 }; |
132 | 129 |
133 } // namespace task_manager | 130 } // namespace task_manager |
134 | 131 |
135 #endif // CHROME_BROWSER_UI_VIEWS_TASK_MANAGER_VIEW_H_ | 132 #endif // CHROME_BROWSER_UI_VIEWS_TASK_MANAGER_VIEW_H_ |
OLD | NEW |