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

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

Issue 671653002: Standardize usage of virtual/override/final in chrome/browser/ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 @interface TaskManagerWindowController (TestingAPI) 61 @interface TaskManagerWindowController (TestingAPI)
62 - (NSTableView*)tableView; 62 - (NSTableView*)tableView;
63 @end 63 @end
64 64
65 // This class listens to task changed events sent by chrome. 65 // This class listens to task changed events sent by chrome.
66 class TaskManagerMac : public TaskManagerModelObserver, 66 class TaskManagerMac : public TaskManagerModelObserver,
67 public TableRowNSImageCache::Table { 67 public TableRowNSImageCache::Table {
68 public: 68 public:
69 explicit TaskManagerMac(TaskManager* task_manager); 69 explicit TaskManagerMac(TaskManager* task_manager);
70 virtual ~TaskManagerMac(); 70 ~TaskManagerMac() override;
71 71
72 // TaskManagerModelObserver 72 // TaskManagerModelObserver
73 virtual void OnModelChanged() override; 73 void OnModelChanged() override;
74 virtual void OnItemsChanged(int start, int length) override; 74 void OnItemsChanged(int start, int length) override;
75 virtual void OnItemsAdded(int start, int length) override; 75 void OnItemsAdded(int start, int length) override;
76 virtual void OnItemsRemoved(int start, int length) override; 76 void OnItemsRemoved(int start, int length) override;
77 77
78 // Called by the cocoa window controller when its window closes and the 78 // Called by the cocoa window controller when its window closes and the
79 // controller destroyed itself. Informs the model to stop updating. 79 // controller destroyed itself. Informs the model to stop updating.
80 void WindowWasClosed(); 80 void WindowWasClosed();
81 81
82 // TableRowNSImageCache::Table 82 // TableRowNSImageCache::Table
83 virtual int RowCount() const override; 83 int RowCount() const override;
84 virtual gfx::ImageSkia GetIcon(int r) const override; 84 gfx::ImageSkia GetIcon(int r) const override;
85 85
86 // Creates the task manager if it doesn't exist; otherwise, it activates the 86 // Creates the task manager if it doesn't exist; otherwise, it activates the
87 // existing task manager window. 87 // existing task manager window.
88 static void Show(); 88 static void Show();
89 89
90 // Hides the task manager if it is showing. 90 // Hides the task manager if it is showing.
91 static void Hide(); 91 static void Hide();
92 92
93 // Returns the TaskManager observed by |this|. 93 // Returns the TaskManager observed by |this|.
94 TaskManager* task_manager() { return task_manager_; } 94 TaskManager* task_manager() { return task_manager_; }
(...skipping 19 matching lines...) Expand all
114 TableRowNSImageCache icon_cache_; 114 TableRowNSImageCache icon_cache_;
115 115
116 // An open task manager window. There can only be one open at a time. This 116 // An open task manager window. There can only be one open at a time. This
117 // is reset to NULL when the window is closed. 117 // is reset to NULL when the window is closed.
118 static TaskManagerMac* instance_; 118 static TaskManagerMac* instance_;
119 119
120 DISALLOW_COPY_AND_ASSIGN(TaskManagerMac); 120 DISALLOW_COPY_AND_ASSIGN(TaskManagerMac);
121 }; 121 };
122 122
123 #endif // CHROME_BROWSER_UI_COCOA_TASK_MANAGER_MAC_H_ 123 #endif // CHROME_BROWSER_UI_COCOA_TASK_MANAGER_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698