| 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 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/mac/scoped_nsobject.h" | 12 #include "base/mac/scoped_nsobject.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "chrome/browser/ui/task_manager/task_manager_table_model.h" | 14 #include "chrome/browser/ui/task_manager/task_manager_table_model.h" |
| 15 #include "content/public/browser/notification_observer.h" | 15 #include "content/public/browser/notification_observer.h" |
| 16 #include "content/public/browser/notification_registrar.h" | 16 #include "content/public/browser/notification_registrar.h" |
| 17 #include "ui/base/models/table_model_observer.h" | 17 #include "ui/base/models/table_model_observer.h" |
| 18 | 18 |
| 19 @class WindowSizeAutosaver; | 19 @class WindowSizeAutosaver; |
| 20 | 20 |
| 21 namespace gfx { | |
| 22 class ImageSkia; | |
| 23 } | |
| 24 | |
| 25 namespace task_manager { | 21 namespace task_manager { |
| 26 class TaskManagerMac; | 22 class TaskManagerMac; |
| 27 } | 23 } |
| 28 | 24 |
| 29 // This class is responsible for loading the task manager window and for | 25 // This class is responsible for loading the task manager window and for |
| 30 // managing it. | 26 // managing it. |
| 31 @interface TaskManagerWindowController | 27 @interface TaskManagerWindowController |
| 32 : NSWindowController<NSTableViewDataSource, | 28 : NSWindowController<NSTableViewDataSource, |
| 33 NSTableViewDelegate, | 29 NSTableViewDelegate, |
| 34 NSMenuDelegate> { | 30 NSMenuDelegate> { |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 // An open task manager window. There can only be one open at a time. This | 139 // An open task manager window. There can only be one open at a time. This |
| 144 // is reset to be null when the window is closed. | 140 // is reset to be null when the window is closed. |
| 145 static TaskManagerMac* instance_; | 141 static TaskManagerMac* instance_; |
| 146 | 142 |
| 147 DISALLOW_COPY_AND_ASSIGN(TaskManagerMac); | 143 DISALLOW_COPY_AND_ASSIGN(TaskManagerMac); |
| 148 }; | 144 }; |
| 149 | 145 |
| 150 } // namespace task_manager | 146 } // namespace task_manager |
| 151 | 147 |
| 152 #endif // CHROME_BROWSER_UI_COCOA_TASK_MANAGER_MAC_H_ | 148 #endif // CHROME_BROWSER_UI_COCOA_TASK_MANAGER_MAC_H_ |
| OLD | NEW |