Chromium Code Reviews| OLD | NEW |
|---|---|
| 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" |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 23 - (id)initWithTaskManager:(TaskManager*)taskManager; | 23 - (id)initWithTaskManager:(TaskManager*)taskManager; |
| 24 | 24 |
| 25 // Refreshes all data in the task manager table. | 25 // Refreshes all data in the task manager table. |
| 26 - (void)reloadData; | 26 - (void)reloadData; |
| 27 | 27 |
| 28 // Callback for "Stats for nerds" link. | 28 // Callback for "Stats for nerds" link. |
| 29 - (IBAction)statsLinkClicked:(id)sender; | 29 - (IBAction)statsLinkClicked:(id)sender; |
| 30 | 30 |
| 31 // Callback for "End process" button. | 31 // Callback for "End process" button. |
| 32 - (IBAction)killSelectedProcesses:(id)sender; | 32 - (IBAction)killSelectedProcesses:(id)sender; |
| 33 | |
| 34 // Callback for double clicks on the table. | |
| 35 - (void)selectDoubleClickedTab:(id)sender; | |
|
Jens Alfke
2009/12/23 19:38:48
Technically this should be an (IBAction) even if y
| |
| 33 @end | 36 @end |
| 34 | 37 |
| 35 // This class listens to task changed events sent by chrome. | 38 // This class listens to task changed events sent by chrome. |
| 36 class TaskManagerMac : public TaskManagerModelObserver { | 39 class TaskManagerMac : public TaskManagerModelObserver { |
| 37 public: | 40 public: |
| 38 TaskManagerMac(); | 41 TaskManagerMac(); |
| 39 virtual ~TaskManagerMac(); | 42 virtual ~TaskManagerMac(); |
| 40 | 43 |
| 41 // TaskManagerModelObserver | 44 // TaskManagerModelObserver |
| 42 virtual void OnModelChanged(); | 45 virtual void OnModelChanged(); |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 59 scoped_nsobject<TaskManagerWindowController> window_controller_; | 62 scoped_nsobject<TaskManagerWindowController> window_controller_; |
| 60 | 63 |
| 61 // An open task manager window. There can only be one open at a time. This | 64 // An open task manager window. There can only be one open at a time. This |
| 62 // is reset to NULL when the window is closed. | 65 // is reset to NULL when the window is closed. |
| 63 static TaskManagerMac* instance_; | 66 static TaskManagerMac* instance_; |
| 64 | 67 |
| 65 DISALLOW_COPY_AND_ASSIGN(TaskManagerMac); | 68 DISALLOW_COPY_AND_ASSIGN(TaskManagerMac); |
| 66 }; | 69 }; |
| 67 | 70 |
| 68 #endif // CHROME_BROWSER_COCOA_TASK_MANAGER_MAC_H_ | 71 #endif // CHROME_BROWSER_COCOA_TASK_MANAGER_MAC_H_ |
| OLD | NEW |