| 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_TASK_MANAGER_TASK_MANAGER_TABLE_MODEL_H_ | 5 #ifndef CHROME_BROWSER_UI_TASK_MANAGER_TASK_MANAGER_TABLE_MODEL_H_ |
| 6 #define CHROME_BROWSER_UI_TASK_MANAGER_TASK_MANAGER_TABLE_MODEL_H_ | 6 #define CHROME_BROWSER_UI_TASK_MANAGER_TASK_MANAGER_TABLE_MODEL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 // |columns_settings_| and updates the table view. | 94 // |columns_settings_| and updates the table view. |
| 95 void RetrieveSavedColumnsSettingsAndUpdateTable(); | 95 void RetrieveSavedColumnsSettingsAndUpdateTable(); |
| 96 | 96 |
| 97 // Stores the current values in |column_settings_| to the user prefs so that | 97 // Stores the current values in |column_settings_| to the user prefs so that |
| 98 // it can be restored later next time the task manager view is opened. | 98 // it can be restored later next time the task manager view is opened. |
| 99 void StoreColumnsSettings(); | 99 void StoreColumnsSettings(); |
| 100 | 100 |
| 101 void ToggleColumnVisibility(int column_id); | 101 void ToggleColumnVisibility(int column_id); |
| 102 | 102 |
| 103 private: | 103 private: |
| 104 friend class TaskManagerTesterImpl; |
| 105 |
| 106 // Hook to let TaskManagerTesterImpl inspect the content of the task manager. |
| 107 static TaskManagerTableModel* GetInstanceForTesting(); |
| 108 |
| 104 // Start / stop observing the task manager. | 109 // Start / stop observing the task manager. |
| 105 void StartUpdating(); | 110 void StartUpdating(); |
| 106 void StopUpdating(); | 111 void StopUpdating(); |
| 107 | 112 |
| 108 void OnRefresh(); | 113 void OnRefresh(); |
| 109 | 114 |
| 110 // Checks whether the task at |row_index| is the first task in its process | 115 // Checks whether the task at |row_index| is the first task in its process |
| 111 // group of tasks. | 116 // group of tasks. |
| 112 bool IsTaskFirstInGroup(int row_index) const; | 117 bool IsTaskFirstInGroup(int row_index) const; |
| 113 | 118 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 134 | 139 |
| 135 // The status of the flag #enable-nacl-debug. | 140 // The status of the flag #enable-nacl-debug. |
| 136 bool is_nacl_debugging_flag_enabled_; | 141 bool is_nacl_debugging_flag_enabled_; |
| 137 | 142 |
| 138 DISALLOW_COPY_AND_ASSIGN(TaskManagerTableModel); | 143 DISALLOW_COPY_AND_ASSIGN(TaskManagerTableModel); |
| 139 }; | 144 }; |
| 140 | 145 |
| 141 } // namespace task_management | 146 } // namespace task_management |
| 142 | 147 |
| 143 #endif // CHROME_BROWSER_UI_TASK_MANAGER_TASK_MANAGER_TABLE_MODEL_H_ | 148 #endif // CHROME_BROWSER_UI_TASK_MANAGER_TASK_MANAGER_TABLE_MODEL_H_ |
| OLD | NEW |