Chromium Code Reviews| 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 27 matching lines...) Expand all Loading... | |
| 38 virtual ~TableViewDelegate() {} | 38 virtual ~TableViewDelegate() {} |
| 39 | 39 |
| 40 virtual bool IsColumnVisible(int column_id) const = 0; | 40 virtual bool IsColumnVisible(int column_id) const = 0; |
| 41 | 41 |
| 42 virtual void SetColumnVisibility(int column_id, bool new_visibility) = 0; | 42 virtual void SetColumnVisibility(int column_id, bool new_visibility) = 0; |
| 43 | 43 |
| 44 virtual bool IsTableSorted() const = 0; | 44 virtual bool IsTableSorted() const = 0; |
| 45 | 45 |
| 46 virtual TableSortDescriptor GetSortDescriptor() const = 0; | 46 virtual TableSortDescriptor GetSortDescriptor() const = 0; |
| 47 | 47 |
| 48 // As the name of |visible_column_index| implies, it must by the index of the | 48 virtual void SetSortDescriptor(TableSortDescriptor sort_descriptor) = 0; |
|
sky
2016/07/18 16:18:58
const TableSortDescriptor& ?
ncarter (slow)
2016/07/25 20:04:01
Done.
| |
| 49 // column in the visible columns array. | |
| 50 virtual void ToggleSortOrder(int visible_column_index) = 0; | |
| 51 | 49 |
| 52 private: | 50 private: |
| 53 DISALLOW_COPY_AND_ASSIGN(TableViewDelegate); | 51 DISALLOW_COPY_AND_ASSIGN(TableViewDelegate); |
| 54 }; | 52 }; |
| 55 | 53 |
| 56 class TaskManagerTableModel | 54 class TaskManagerTableModel |
| 57 : public TaskManagerObserver, | 55 : public TaskManagerObserver, |
| 58 public ui::TableModel { | 56 public ui::TableModel { |
| 59 public: | 57 public: |
| 60 TaskManagerTableModel(int64_t refresh_flags, TableViewDelegate* delegate); | 58 TaskManagerTableModel(int64_t refresh_flags, TableViewDelegate* delegate); |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 136 | 134 |
| 137 // The status of the flag #enable-nacl-debug. | 135 // The status of the flag #enable-nacl-debug. |
| 138 bool is_nacl_debugging_flag_enabled_; | 136 bool is_nacl_debugging_flag_enabled_; |
| 139 | 137 |
| 140 DISALLOW_COPY_AND_ASSIGN(TaskManagerTableModel); | 138 DISALLOW_COPY_AND_ASSIGN(TaskManagerTableModel); |
| 141 }; | 139 }; |
| 142 | 140 |
| 143 } // namespace task_management | 141 } // namespace task_management |
| 144 | 142 |
| 145 #endif // CHROME_BROWSER_UI_TASK_MANAGER_TASK_MANAGER_TABLE_MODEL_H_ | 143 #endif // CHROME_BROWSER_UI_TASK_MANAGER_TASK_MANAGER_TABLE_MODEL_H_ |
| OLD | NEW |