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

Side by Side Diff: chrome/browser/ui/cocoa/task_manager_mac.h

Issue 17593006: mac: Update clients of scoped_nsobject.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: iwyu, scoped_nsprotocol Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_COCOA_TASK_MANAGER_MAC_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_TASK_MANAGER_MAC_H_
6 #define CHROME_BROWSER_UI_COCOA_TASK_MANAGER_MAC_H_ 6 #define CHROME_BROWSER_UI_COCOA_TASK_MANAGER_MAC_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/memory/scoped_nsobject.h" 11 #include "base/mac/scoped_nsobject.h"
12 #include "chrome/browser/task_manager/task_manager.h" 12 #include "chrome/browser/task_manager/task_manager.h"
13 #include "chrome/browser/ui/cocoa/table_row_nsimage_cache.h" 13 #include "chrome/browser/ui/cocoa/table_row_nsimage_cache.h"
14 14
15 @class WindowSizeAutosaver; 15 @class WindowSizeAutosaver;
16 class TaskManagerMac; 16 class TaskManagerMac;
17 17
18 namespace gfx { 18 namespace gfx {
19 class ImageSkia; 19 class ImageSkia;
20 } 20 }
21 21
22 // This class is responsible for loading the task manager window and for 22 // This class is responsible for loading the task manager window and for
23 // managing it. 23 // managing it.
24 @interface TaskManagerWindowController : 24 @interface TaskManagerWindowController :
25 NSWindowController<NSTableViewDataSource, 25 NSWindowController<NSTableViewDataSource,
26 NSTableViewDelegate> { 26 NSTableViewDelegate> {
27 @private 27 @private
28 IBOutlet NSTableView* tableView_; 28 IBOutlet NSTableView* tableView_;
29 IBOutlet NSButton* endProcessButton_; 29 IBOutlet NSButton* endProcessButton_;
30 TaskManagerMac* taskManagerObserver_; // weak 30 TaskManagerMac* taskManagerObserver_; // weak
31 TaskManager* taskManager_; // weak 31 TaskManager* taskManager_; // weak
32 TaskManagerModel* model_; // weak 32 TaskManagerModel* model_; // weak
33 33
34 scoped_nsobject<WindowSizeAutosaver> size_saver_; 34 base::scoped_nsobject<WindowSizeAutosaver> size_saver_;
35 35
36 // These contain a permutation of [0..|model_->ResourceCount() - 1|]. Used to 36 // These contain a permutation of [0..|model_->ResourceCount() - 1|]. Used to
37 // implement sorting. 37 // implement sorting.
38 std::vector<int> viewToModelMap_; 38 std::vector<int> viewToModelMap_;
39 std::vector<int> modelToViewMap_; 39 std::vector<int> modelToViewMap_;
40 40
41 // Descriptor of the current sort column. 41 // Descriptor of the current sort column.
42 scoped_nsobject<NSSortDescriptor> currentSortDescriptor_; 42 base::scoped_nsobject<NSSortDescriptor> currentSortDescriptor_;
43 } 43 }
44 44
45 // Creates and shows the task manager's window. 45 // Creates and shows the task manager's window.
46 - (id)initWithTaskManagerObserver:(TaskManagerMac*)taskManagerObserver; 46 - (id)initWithTaskManagerObserver:(TaskManagerMac*)taskManagerObserver;
47 47
48 // Refreshes all data in the task manager table. 48 // Refreshes all data in the task manager table.
49 - (void)reloadData; 49 - (void)reloadData;
50 50
51 // Callback for "Stats for nerds" link. 51 // Callback for "Stats for nerds" link.
52 - (IBAction)statsLinkClicked:(id)sender; 52 - (IBAction)statsLinkClicked:(id)sender;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 TableRowNSImageCache icon_cache_; 111 TableRowNSImageCache icon_cache_;
112 112
113 // An open task manager window. There can only be one open at a time. This 113 // An open task manager window. There can only be one open at a time. This
114 // is reset to NULL when the window is closed. 114 // is reset to NULL when the window is closed.
115 static TaskManagerMac* instance_; 115 static TaskManagerMac* instance_;
116 116
117 DISALLOW_COPY_AND_ASSIGN(TaskManagerMac); 117 DISALLOW_COPY_AND_ASSIGN(TaskManagerMac);
118 }; 118 };
119 119
120 #endif // CHROME_BROWSER_UI_COCOA_TASK_MANAGER_MAC_H_ 120 #endif // CHROME_BROWSER_UI_COCOA_TASK_MANAGER_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698