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

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

Issue 2146033003: TableView: 3-phase ToggleSortOrder (sorted/reversed/unsorted) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sky's fixes. Created 4 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/ui/task_manager/task_manager_table_model.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
(...skipping 27 matching lines...) Expand all
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(
49 // column in the visible columns array. 49 const TableSortDescriptor& sort_descriptor) = 0;
50 virtual void ToggleSortOrder(int visible_column_index) = 0;
51 50
52 private: 51 private:
53 DISALLOW_COPY_AND_ASSIGN(TableViewDelegate); 52 DISALLOW_COPY_AND_ASSIGN(TableViewDelegate);
54 }; 53 };
55 54
56 class TaskManagerTableModel 55 class TaskManagerTableModel
57 : public TaskManagerObserver, 56 : public TaskManagerObserver,
58 public ui::TableModel { 57 public ui::TableModel {
59 public: 58 public:
60 TaskManagerTableModel(int64_t refresh_flags, TableViewDelegate* delegate); 59 TaskManagerTableModel(int64_t refresh_flags, TableViewDelegate* delegate);
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 135
137 // The status of the flag #enable-nacl-debug. 136 // The status of the flag #enable-nacl-debug.
138 bool is_nacl_debugging_flag_enabled_; 137 bool is_nacl_debugging_flag_enabled_;
139 138
140 DISALLOW_COPY_AND_ASSIGN(TaskManagerTableModel); 139 DISALLOW_COPY_AND_ASSIGN(TaskManagerTableModel);
141 }; 140 };
142 141
143 } // namespace task_management 142 } // namespace task_management
144 143
145 #endif // CHROME_BROWSER_UI_TASK_MANAGER_TASK_MANAGER_TABLE_MODEL_H_ 144 #endif // CHROME_BROWSER_UI_TASK_MANAGER_TASK_MANAGER_TABLE_MODEL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/task_manager/task_manager_table_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698