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

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

Issue 10175008: Improving the process model extension API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #import <Cocoa/Cocoa.h> 9 #import <Cocoa/Cocoa.h>
10 #include <vector> 10 #include <vector>
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 public TableRowNSImageCache::Table { 71 public TableRowNSImageCache::Table {
72 public: 72 public:
73 TaskManagerMac(TaskManager* task_manager, bool highlight_background); 73 TaskManagerMac(TaskManager* task_manager, bool highlight_background);
74 virtual ~TaskManagerMac(); 74 virtual ~TaskManagerMac();
75 75
76 // TaskManagerModelObserver 76 // TaskManagerModelObserver
77 virtual void OnModelChanged() OVERRIDE; 77 virtual void OnModelChanged() OVERRIDE;
78 virtual void OnItemsChanged(int start, int length) OVERRIDE; 78 virtual void OnItemsChanged(int start, int length) OVERRIDE;
79 virtual void OnItemsAdded(int start, int length) OVERRIDE; 79 virtual void OnItemsAdded(int start, int length) OVERRIDE;
80 virtual void OnItemsRemoved(int start, int length) OVERRIDE; 80 virtual void OnItemsRemoved(int start, int length) OVERRIDE;
81 virtual void OnItemsToBeRemoved(int start, int length) OVERRIDE {}
81 82
82 // Called by the cocoa window controller when its window closes and the 83 // Called by the cocoa window controller when its window closes and the
83 // controller destroyed itself. Informs the model to stop updating. 84 // controller destroyed itself. Informs the model to stop updating.
84 void WindowWasClosed(); 85 void WindowWasClosed();
85 86
86 // TableRowNSImageCache::Table 87 // TableRowNSImageCache::Table
87 virtual int RowCount() const OVERRIDE; 88 virtual int RowCount() const OVERRIDE;
88 virtual SkBitmap GetIcon(int r) const OVERRIDE; 89 virtual SkBitmap GetIcon(int r) const OVERRIDE;
89 90
90 // Creates the task manager if it doesn't exist; otherwise, it activates the 91 // Creates the task manager if it doesn't exist; otherwise, it activates the
(...skipping 30 matching lines...) Expand all
121 bool highlight_background_resources_; 122 bool highlight_background_resources_;
122 123
123 // An open task manager window. There can only be one open at a time. This 124 // An open task manager window. There can only be one open at a time. This
124 // is reset to NULL when the window is closed. 125 // is reset to NULL when the window is closed.
125 static TaskManagerMac* instance_; 126 static TaskManagerMac* instance_;
126 127
127 DISALLOW_COPY_AND_ASSIGN(TaskManagerMac); 128 DISALLOW_COPY_AND_ASSIGN(TaskManagerMac);
128 }; 129 };
129 130
130 #endif // CHROME_BROWSER_UI_COCOA_TASK_MANAGER_MAC_H_ 131 #endif // CHROME_BROWSER_UI_COCOA_TASK_MANAGER_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698