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

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

Issue 2197483003: Move the Mac Task Manager to the new backend code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mark Created 4 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 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"
11 #include "chrome/browser/ui/task_manager/task_manager_table_model.h" 11 #include "chrome/browser/ui/task_manager/task_manager_table_model.h"
12 #include "ui/base/models/simple_menu_model.h" 12 #include "ui/base/models/simple_menu_model.h"
13 #include "ui/base/models/table_model.h" 13 #include "ui/base/models/table_model.h"
14 #include "ui/views/context_menu_controller.h" 14 #include "ui/views/context_menu_controller.h"
15 #include "ui/views/controls/menu/menu_runner.h" 15 #include "ui/views/controls/menu/menu_runner.h"
16 #include "ui/views/controls/table/table_grouper.h" 16 #include "ui/views/controls/table/table_grouper.h"
17 #include "ui/views/controls/table/table_view_observer.h" 17 #include "ui/views/controls/table/table_view_observer.h"
18 #include "ui/views/window/dialog_delegate.h" 18 #include "ui/views/window/dialog_delegate.h"
19 19
20 class Browser; 20 class Browser;
21 21
22 namespace views { 22 namespace views {
23 class Link; 23 class Link;
24 class TableView; 24 class TableView;
25 class View; 25 class View;
26 } // namespace views 26 } // namespace views
27 27
28 namespace task_management { 28 namespace task_management {
29 29
30 class TaskManagerTableModel;
31
32 // The new task manager UI container. 30 // The new task manager UI container.
33 class NewTaskManagerView 31 class NewTaskManagerView
34 : public TableViewDelegate, 32 : public TableViewDelegate,
35 public views::DialogDelegateView, 33 public views::DialogDelegateView,
36 public views::TableGrouper, 34 public views::TableGrouper,
37 public views::TableViewObserver, 35 public views::TableViewObserver,
38 public views::ContextMenuController, 36 public views::ContextMenuController,
39 public ui::SimpleMenuModel::Delegate { 37 public ui::SimpleMenuModel::Delegate {
40 public: 38 public:
41 ~NewTaskManagerView() override; 39 ~NewTaskManagerView() override;
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 125
128 // True when the Task Manager window should be shown on top of other windows. 126 // True when the Task Manager window should be shown on top of other windows.
129 bool is_always_on_top_; 127 bool is_always_on_top_;
130 128
131 DISALLOW_COPY_AND_ASSIGN(NewTaskManagerView); 129 DISALLOW_COPY_AND_ASSIGN(NewTaskManagerView);
132 }; 130 };
133 131
134 } // namespace task_management 132 } // namespace task_management
135 133
136 #endif // CHROME_BROWSER_UI_VIEWS_NEW_TASK_MANAGER_VIEW_H_ 134 #endif // CHROME_BROWSER_UI_VIEWS_NEW_TASK_MANAGER_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/browser_dialogs_views.cc ('k') | chrome/browser/ui/views/new_task_manager_view_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698