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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 | 92 |
93 // ui::SimpleMenuModel::Delegate: | 93 // ui::SimpleMenuModel::Delegate: |
94 bool IsCommandIdChecked(int id) const override; | 94 bool IsCommandIdChecked(int id) const override; |
95 bool IsCommandIdEnabled(int id) const override; | 95 bool IsCommandIdEnabled(int id) const override; |
96 bool GetAcceleratorForCommandId(int command_id, | 96 bool GetAcceleratorForCommandId(int command_id, |
97 ui::Accelerator* accelerator) override; | 97 ui::Accelerator* accelerator) override; |
98 void ExecuteCommand(int id, int event_flags) override; | 98 void ExecuteCommand(int id, int event_flags) override; |
99 | 99 |
100 private: | 100 private: |
101 friend class NewTaskManagerViewTest; | 101 friend class NewTaskManagerViewTest; |
| 102 friend class TaskManagerTester; |
102 | 103 |
103 NewTaskManagerView(); | 104 NewTaskManagerView(); |
104 | 105 |
105 static NewTaskManagerView* GetInstanceForTests(); | 106 static NewTaskManagerView* GetInstanceForTests(); |
106 | 107 |
107 // Creates the child controls. | 108 // Creates the child controls. |
108 void Init(); | 109 void Init(); |
109 | 110 |
110 // Initializes the state of the always-on-top setting as the window is shown. | 111 // Initializes the state of the always-on-top setting as the window is shown. |
111 void InitAlwaysOnTopState(); | 112 void InitAlwaysOnTopState(); |
(...skipping 20 matching lines...) Expand all Loading... |
132 | 133 |
133 // True when the Task Manager window should be shown on top of other windows. | 134 // True when the Task Manager window should be shown on top of other windows. |
134 bool is_always_on_top_; | 135 bool is_always_on_top_; |
135 | 136 |
136 DISALLOW_COPY_AND_ASSIGN(NewTaskManagerView); | 137 DISALLOW_COPY_AND_ASSIGN(NewTaskManagerView); |
137 }; | 138 }; |
138 | 139 |
139 } // namespace task_management | 140 } // namespace task_management |
140 | 141 |
141 #endif // CHROME_BROWSER_UI_VIEWS_NEW_TASK_MANAGER_VIEW_H_ | 142 #endif // CHROME_BROWSER_UI_VIEWS_NEW_TASK_MANAGER_VIEW_H_ |
OLD | NEW |