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

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

Issue 3137033: Minor fixes to keep TOT working with the 10.6 SDK. Note use of... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/test/ui_test_utils_mac.mm » ('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 (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_COCOA_TASK_MANAGER_MAC_H_ 5 #ifndef CHROME_BROWSER_COCOA_TASK_MANAGER_MAC_H_
6 #define CHROME_BROWSER_COCOA_TASK_MANAGER_MAC_H_ 6 #define CHROME_BROWSER_COCOA_TASK_MANAGER_MAC_H_
7 #pragma once 7 #pragma once
8 8
9 #import <Cocoa/Cocoa.h> 9 #import <Cocoa/Cocoa.h>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/cocoa_protocols_mac.h"
12 #include "base/scoped_nsobject.h" 13 #include "base/scoped_nsobject.h"
13 #include "chrome/browser/cocoa/table_row_nsimage_cache.h" 14 #include "chrome/browser/cocoa/table_row_nsimage_cache.h"
14 #include "chrome/browser/task_manager.h" 15 #include "chrome/browser/task_manager.h"
15 16
16 @class WindowSizeAutosaver; 17 @class WindowSizeAutosaver;
17 class SkBitmap; 18 class SkBitmap;
18 class TaskManagerMac; 19 class TaskManagerMac;
19 20
20 // This class is responsible for loading the task manager window and for 21 // This class is responsible for loading the task manager window and for
21 // managing it. 22 // managing it.
22 @interface TaskManagerWindowController : NSWindowController { 23 @interface TaskManagerWindowController :
24 NSWindowController<NSTableViewDataSource,
25 NSTableViewDelegate> {
23 @private 26 @private
24 IBOutlet NSTableView* tableView_; 27 IBOutlet NSTableView* tableView_;
25 IBOutlet NSButton* endProcessButton_; 28 IBOutlet NSButton* endProcessButton_;
26 TaskManagerMac* taskManagerObserver_; // weak 29 TaskManagerMac* taskManagerObserver_; // weak
27 TaskManager* taskManager_; // weak 30 TaskManager* taskManager_; // weak
28 TaskManagerModel* model_; // weak 31 TaskManagerModel* model_; // weak
29 32
30 scoped_nsobject<WindowSizeAutosaver> size_saver_; 33 scoped_nsobject<WindowSizeAutosaver> size_saver_;
31 34
32 // These contain a permutation of [0..|model_->ResourceCount() - 1|]. Used to 35 // These contain a permutation of [0..|model_->ResourceCount() - 1|]. Used to
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 TableRowNSImageCache icon_cache_; 109 TableRowNSImageCache icon_cache_;
107 110
108 // An open task manager window. There can only be one open at a time. This 111 // An open task manager window. There can only be one open at a time. This
109 // is reset to NULL when the window is closed. 112 // is reset to NULL when the window is closed.
110 static TaskManagerMac* instance_; 113 static TaskManagerMac* instance_;
111 114
112 DISALLOW_COPY_AND_ASSIGN(TaskManagerMac); 115 DISALLOW_COPY_AND_ASSIGN(TaskManagerMac);
113 }; 116 };
114 117
115 #endif // CHROME_BROWSER_COCOA_TASK_MANAGER_MAC_H_ 118 #endif // CHROME_BROWSER_COCOA_TASK_MANAGER_MAC_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/test/ui_test_utils_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698