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

Unified Diff: chrome/browser/ui/views/new_task_manager_view.h

Issue 1320563002: Task Manager Should remember the most recently enabled columns. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/new_task_manager_view.h
diff --git a/chrome/browser/ui/views/new_task_manager_view.h b/chrome/browser/ui/views/new_task_manager_view.h
index 2d4d03884030377fc9ba756eb30c3e3956af58c8..65d2616ec2e0b844c431c7ca0796ddee75307f39 100644
--- a/chrome/browser/ui/views/new_task_manager_view.h
+++ b/chrome/browser/ui/views/new_task_manager_view.h
@@ -101,10 +101,25 @@ class NewTaskManagerView
// Restores saved "always on top" state from a previous session.
void RetriveSavedAlwaysOnTopState();
+ // Restores the saved column visibility from a previous session.
+ void RetrieveSavedColumnVisibility();
+
+ // Updates the visibility of the columns in the table view based on the values
+ // stored in |column_visibility_settings_|.
+ void UpdateColumnVisibility();
+
+ // Stores the current values of columns visibility in
+ // |column_visibility_settings_| to the user prefs.
+ void StoreColumnVisibility();
+
scoped_ptr<NewTaskManagerView::TableModel> table_model_;
scoped_ptr<views::MenuRunner> menu_runner_;
+ // Contains either the retrieved from user preferences columns visibility
+ // settings if any, otherwise it will contain the default column visibility.
+ scoped_ptr<base::DictionaryValue> column_visibility_settings_;
Lei Zhang 2015/08/27 01:10:44 Does this need to be a scoped_ptr? It's always goi
afakhry 2015/08/27 19:56:52 It has to be a scoped_ptr<>. DictionaryValue is ow
+
// We need to own the text of the menu, the Windows API does not copy it.
base::string16 always_on_top_menu_text_;

Powered by Google App Engine
This is Rietveld 408576698