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

Side by Side Diff: chrome/browser/ui/task_manager/task_manager_table_model.h

Issue 1922683003: Make old task manager tests work against new task manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix OSX function call namespace Created 4 years, 7 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_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>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "chrome/browser/task_management/task_manager_observer.h" 14 #include "chrome/browser/task_management/task_manager_observer.h"
15 #include "ui/base/models/table_model.h" 15 #include "ui/base/models/table_model.h"
16 16
17 namespace task_manager {
18 namespace browsertest_util {
19 class TaskManagerTesterImpl;
20 }
21 }
22
17 namespace task_management { 23 namespace task_management {
18 24
19 class TaskManagerValuesStringifier; 25 class TaskManagerValuesStringifier;
20 26
21 // Describes how the platform specific table view is sorted. 27 // Describes how the platform specific table view is sorted.
22 struct TableSortDescriptor { 28 struct TableSortDescriptor {
23 TableSortDescriptor(); 29 TableSortDescriptor();
24 TableSortDescriptor(int col_id, bool ascending); 30 TableSortDescriptor(int col_id, bool ascending);
25 31
26 // The ID of the sorted column, -1 if the table is not sorted. 32 // The ID of the sorted column, -1 if the table is not sorted.
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 // |columns_settings_| and updates the table view. 100 // |columns_settings_| and updates the table view.
95 void RetrieveSavedColumnsSettingsAndUpdateTable(); 101 void RetrieveSavedColumnsSettingsAndUpdateTable();
96 102
97 // Stores the current values in |column_settings_| to the user prefs so that 103 // 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. 104 // it can be restored later next time the task manager view is opened.
99 void StoreColumnsSettings(); 105 void StoreColumnsSettings();
100 106
101 void ToggleColumnVisibility(int column_id); 107 void ToggleColumnVisibility(int column_id);
102 108
103 private: 109 private:
110 friend class task_manager::browsertest_util::TaskManagerTesterImpl;
111
104 // Start / stop observing the task manager. 112 // Start / stop observing the task manager.
105 void StartUpdating(); 113 void StartUpdating();
106 void StopUpdating(); 114 void StopUpdating();
107 115
108 void OnRefresh(); 116 void OnRefresh();
109 117
110 // Checks whether the task at |row_index| is the first task in its process 118 // Checks whether the task at |row_index| is the first task in its process
111 // group of tasks. 119 // group of tasks.
112 bool IsTaskFirstInGroup(int row_index) const; 120 bool IsTaskFirstInGroup(int row_index) const;
113 121
(...skipping 20 matching lines...) Expand all
134 142
135 // The status of the flag #enable-nacl-debug. 143 // The status of the flag #enable-nacl-debug.
136 bool is_nacl_debugging_flag_enabled_; 144 bool is_nacl_debugging_flag_enabled_;
137 145
138 DISALLOW_COPY_AND_ASSIGN(TaskManagerTableModel); 146 DISALLOW_COPY_AND_ASSIGN(TaskManagerTableModel);
139 }; 147 };
140 148
141 } // namespace task_management 149 } // namespace task_management
142 150
143 #endif // CHROME_BROWSER_UI_TASK_MANAGER_TASK_MANAGER_TABLE_MODEL_H_ 151 #endif // CHROME_BROWSER_UI_TASK_MANAGER_TASK_MANAGER_TABLE_MODEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/task_manager_mac.mm ('k') | chrome/browser/ui/views/browser_dialogs_views_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698