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_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 26 matching lines...) Expand all Loading... |
37 public views::ButtonListener, | 37 public views::ButtonListener, |
38 public views::DialogDelegateView, | 38 public views::DialogDelegateView, |
39 public views::TableGrouper, | 39 public views::TableGrouper, |
40 public views::TableViewObserver, | 40 public views::TableViewObserver, |
41 public views::ContextMenuController, | 41 public views::ContextMenuController, |
42 public ui::SimpleMenuModel::Delegate { | 42 public ui::SimpleMenuModel::Delegate { |
43 public: | 43 public: |
44 ~NewTaskManagerView() override; | 44 ~NewTaskManagerView() override; |
45 | 45 |
46 // Shows the Task Manager window, or re-activates an existing one. | 46 // Shows the Task Manager window, or re-activates an existing one. |
47 static void Show(Browser* browser); | 47 static task_management::TaskManagerTableModel* Show(Browser* browser); |
48 | 48 |
49 // Hides the Task Manager if it is showing. | 49 // Hides the Task Manager if it is showing. |
50 static void Hide(); | 50 static void Hide(); |
51 | 51 |
52 // task_management::TableViewDelegate: | 52 // task_management::TableViewDelegate: |
53 bool IsColumnVisible(int column_id) const override; | 53 bool IsColumnVisible(int column_id) const override; |
54 void SetColumnVisibility(int column_id, bool new_visibility) override; | 54 void SetColumnVisibility(int column_id, bool new_visibility) override; |
55 bool IsTableSorted() const override; | 55 bool IsTableSorted() const override; |
56 TableSortDescriptor GetSortDescriptor() const override; | 56 TableSortDescriptor GetSortDescriptor() const override; |
57 void ToggleSortOrder(int visible_column_index) override; | 57 void ToggleSortOrder(int visible_column_index) override; |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 | 132 |
133 // True when the Task Manager window should be shown on top of other windows. | 133 // True when the Task Manager window should be shown on top of other windows. |
134 bool is_always_on_top_; | 134 bool is_always_on_top_; |
135 | 135 |
136 DISALLOW_COPY_AND_ASSIGN(NewTaskManagerView); | 136 DISALLOW_COPY_AND_ASSIGN(NewTaskManagerView); |
137 }; | 137 }; |
138 | 138 |
139 } // namespace task_management | 139 } // namespace task_management |
140 | 140 |
141 #endif // CHROME_BROWSER_UI_VIEWS_NEW_TASK_MANAGER_VIEW_H_ | 141 #endif // CHROME_BROWSER_UI_VIEWS_NEW_TASK_MANAGER_VIEW_H_ |
OLD | NEW |