| OLD | NEW |
| 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 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 // Descriptor of the current sort column. | 42 // Descriptor of the current sort column. |
| 43 base::scoped_nsobject<NSSortDescriptor> currentSortDescriptor_; | 43 base::scoped_nsobject<NSSortDescriptor> currentSortDescriptor_; |
| 44 } | 44 } |
| 45 | 45 |
| 46 // Creates and shows the task manager's window. | 46 // Creates and shows the task manager's window. |
| 47 - (id)initWithTaskManagerObserver:(TaskManagerMac*)taskManagerObserver; | 47 - (id)initWithTaskManagerObserver:(TaskManagerMac*)taskManagerObserver; |
| 48 | 48 |
| 49 // Refreshes all data in the task manager table. | 49 // Refreshes all data in the task manager table. |
| 50 - (void)reloadData; | 50 - (void)reloadData; |
| 51 | 51 |
| 52 // Callback for "Stats for nerds" link. | |
| 53 - (IBAction)statsLinkClicked:(id)sender; | |
| 54 | |
| 55 // Callback for "End process" button. | 52 // Callback for "End process" button. |
| 56 - (IBAction)killSelectedProcesses:(id)sender; | 53 - (IBAction)killSelectedProcesses:(id)sender; |
| 57 | 54 |
| 58 // Callback for double clicks on the table. | 55 // Callback for double clicks on the table. |
| 59 - (void)selectDoubleClickedTab:(id)sender; | 56 - (void)selectDoubleClickedTab:(id)sender; |
| 60 @end | 57 @end |
| 61 | 58 |
| 62 @interface TaskManagerWindowController (TestingAPI) | 59 @interface TaskManagerWindowController (TestingAPI) |
| 63 - (NSTableView*)tableView; | 60 - (NSTableView*)tableView; |
| 64 @end | 61 @end |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 TableRowNSImageCache icon_cache_; | 112 TableRowNSImageCache icon_cache_; |
| 116 | 113 |
| 117 // An open task manager window. There can only be one open at a time. This | 114 // An open task manager window. There can only be one open at a time. This |
| 118 // is reset to NULL when the window is closed. | 115 // is reset to NULL when the window is closed. |
| 119 static TaskManagerMac* instance_; | 116 static TaskManagerMac* instance_; |
| 120 | 117 |
| 121 DISALLOW_COPY_AND_ASSIGN(TaskManagerMac); | 118 DISALLOW_COPY_AND_ASSIGN(TaskManagerMac); |
| 122 }; | 119 }; |
| 123 | 120 |
| 124 #endif // CHROME_BROWSER_UI_COCOA_TASK_MANAGER_MAC_H_ | 121 #endif // CHROME_BROWSER_UI_COCOA_TASK_MANAGER_MAC_H_ |
| OLD | NEW |