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

Side by Side Diff: chrome/browser/ui/views/new_task_manager_view.h

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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_VIEWS_NEW_TASK_MANAGER_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_NEW_TASK_MANAGER_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_NEW_TASK_MANAGER_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_NEW_TASK_MANAGER_VIEW_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 109
110 // Initializes the state of the always-on-top setting as the window is shown. 110 // Initializes the state of the always-on-top setting as the window is shown.
111 void InitAlwaysOnTopState(); 111 void InitAlwaysOnTopState();
112 112
113 // Activates the tab associated with the focused row. 113 // Activates the tab associated with the focused row.
114 void ActivateFocusedTab(); 114 void ActivateFocusedTab();
115 115
116 // Restores saved "always on top" state from a previous session. 116 // Restores saved "always on top" state from a previous session.
117 void RetriveSavedAlwaysOnTopState(); 117 void RetriveSavedAlwaysOnTopState();
118 118
119 scoped_ptr<TaskManagerTableModel> table_model_; 119 std::unique_ptr<TaskManagerTableModel> table_model_;
120 120
121 scoped_ptr<views::MenuRunner> menu_runner_; 121 std::unique_ptr<views::MenuRunner> menu_runner_;
122 122
123 // We need to own the text of the menu, the Windows API does not copy it. 123 // We need to own the text of the menu, the Windows API does not copy it.
124 base::string16 always_on_top_menu_text_; 124 base::string16 always_on_top_menu_text_;
125 125
126 views::LabelButton* kill_button_; 126 views::LabelButton* kill_button_;
127 views::TableView* tab_table_; 127 views::TableView* tab_table_;
128 views::View* tab_table_parent_; 128 views::View* tab_table_parent_;
129 129
130 // all possible columns, not necessarily visible 130 // all possible columns, not necessarily visible
131 std::vector<ui::TableColumn> columns_; 131 std::vector<ui::TableColumn> columns_;
132 132
133 // True when the Task Manager window should be shown on top of other windows. 133 // True when the Task Manager window should be shown on top of other windows.
134 bool is_always_on_top_; 134 bool is_always_on_top_;
135 135
136 DISALLOW_COPY_AND_ASSIGN(NewTaskManagerView); 136 DISALLOW_COPY_AND_ASSIGN(NewTaskManagerView);
137 }; 137 };
138 138
139 } // namespace task_management 139 } // namespace task_management
140 140
141 #endif // CHROME_BROWSER_UI_VIEWS_NEW_TASK_MANAGER_VIEW_H_ 141 #endif // CHROME_BROWSER_UI_VIEWS_NEW_TASK_MANAGER_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698