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

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

Issue 627043002: replace OVERRIDE and FINAL with override and final in chrome/browser/ui/[a-s]* (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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 virtual ~TaskManagerMac();
71 71
72 // TaskManagerModelObserver 72 // TaskManagerModelObserver
73 virtual void OnModelChanged() OVERRIDE; 73 virtual void OnModelChanged() override;
74 virtual void OnItemsChanged(int start, int length) OVERRIDE; 74 virtual void OnItemsChanged(int start, int length) override;
75 virtual void OnItemsAdded(int start, int length) OVERRIDE; 75 virtual void OnItemsAdded(int start, int length) override;
76 virtual void OnItemsRemoved(int start, int length) OVERRIDE; 76 virtual 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 virtual int RowCount() const override;
84 virtual gfx::ImageSkia GetIcon(int r) const OVERRIDE; 84 virtual 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 // Returns the TaskManager observed by |this|. 90 // Returns the TaskManager observed by |this|.
91 TaskManager* task_manager() { return task_manager_; } 91 TaskManager* task_manager() { return task_manager_; }
92 92
93 // Lazily converts the image at the given row and caches it in |icon_cache_|. 93 // Lazily converts the image at the given row and caches it in |icon_cache_|.
94 NSImage* GetImageForRow(int row); 94 NSImage* GetImageForRow(int row);
(...skipping 16 matching lines...) Expand all
111 TableRowNSImageCache icon_cache_; 111 TableRowNSImageCache icon_cache_;
112 112
113 // An open task manager window. There can only be one open at a time. This 113 // An open task manager window. There can only be one open at a time. This
114 // is reset to NULL when the window is closed. 114 // is reset to NULL when the window is closed.
115 static TaskManagerMac* instance_; 115 static TaskManagerMac* instance_;
116 116
117 DISALLOW_COPY_AND_ASSIGN(TaskManagerMac); 117 DISALLOW_COPY_AND_ASSIGN(TaskManagerMac);
118 }; 118 };
119 119
120 #endif // CHROME_BROWSER_UI_COCOA_TASK_MANAGER_MAC_H_ 120 #endif // CHROME_BROWSER_UI_COCOA_TASK_MANAGER_MAC_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/tabs/tab_strip_model_observer_bridge.h ('k') | chrome/browser/ui/cocoa/task_manager_mac_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698