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

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

Issue 208043: Task Manager for OS X: Set up columns, show rows. (Closed)
Patch Set: Fight Cocoa. Created 11 years, 3 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
« no previous file with comments | « chrome/app/nibs/TaskManager.xib ('k') | chrome/browser/cocoa/task_manager_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 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 #include "base/scoped_nsobject.h" 9 #include "base/scoped_nsobject.h"
10 #include "chrome/browser/task_manager.h" 10 #include "chrome/browser/task_manager.h"
11 11
12 // This class is responsible for loading the task manager window and for 12 // This class is responsible for loading the task manager window and for
13 // managing it. 13 // managing it.
14 @interface TaskManagerWindowController : NSWindowController { 14 @interface TaskManagerWindowController : NSWindowController {
15 @private
16 IBOutlet NSTableView* tableView_;
17 TaskManagerModel* model_; // weak
15 } 18 }
16 19
17 // Creates and shows the task manager's window. 20 // Creates and shows the task manager's window.
18 - (id)init; 21 - (id)initWithModel:(TaskManagerModel*)model;
22
23 // Refreshes all data in the task manager table.
24 - (void)reloadData;
19 @end 25 @end
20 26
21 // This class listens to task changed events sent by chrome. 27 // This class listens to task changed events sent by chrome.
22 class TaskManagerMac : public TaskManagerModelObserver { 28 class TaskManagerMac : public TaskManagerModelObserver {
23 public: 29 public:
24 TaskManagerMac(); 30 TaskManagerMac();
25 virtual ~TaskManagerMac(); 31 virtual ~TaskManagerMac();
26 32
27 // TaskManagerModelObserver 33 // TaskManagerModelObserver
28 virtual void OnModelChanged(); 34 virtual void OnModelChanged();
(...skipping 16 matching lines...) Expand all
45 scoped_nsobject<TaskManagerWindowController> window_controller_; 51 scoped_nsobject<TaskManagerWindowController> window_controller_;
46 52
47 // An open task manager window. There can only be one open at a time. This 53 // An open task manager window. There can only be one open at a time. This
48 // is reset to NULL when the window is closed. 54 // is reset to NULL when the window is closed.
49 static TaskManagerMac* instance_; 55 static TaskManagerMac* instance_;
50 56
51 DISALLOW_COPY_AND_ASSIGN(TaskManagerMac); 57 DISALLOW_COPY_AND_ASSIGN(TaskManagerMac);
52 }; 58 };
53 59
54 #endif // CHROME_BROWSER_COCOA_TASK_MANAGER_MAC_H_ 60 #endif // CHROME_BROWSER_COCOA_TASK_MANAGER_MAC_H_
OLDNEW
« no previous file with comments | « chrome/app/nibs/TaskManager.xib ('k') | chrome/browser/cocoa/task_manager_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698