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

Side by Side Diff: chrome/browser/ui/cocoa/download/download_shelf_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_DOWNLOAD_DOWNLOAD_SHELF_MAC_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_DOWNLOAD_DOWNLOAD_SHELF_MAC_H_
6 #define CHROME_BROWSER_UI_COCOA_DOWNLOAD_DOWNLOAD_SHELF_MAC_H_ 6 #define CHROME_BROWSER_UI_COCOA_DOWNLOAD_DOWNLOAD_SHELF_MAC_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "chrome/browser/download/download_shelf.h" 11 #include "chrome/browser/download/download_shelf.h"
12 12
13 class DownloadItemModel; 13 class DownloadItemModel;
14 14
15 @class DownloadShelfController; 15 @class DownloadShelfController;
16 16
17 // A class to bridge the chromium download shelf to mac gui. This is just a 17 // A class to bridge the chromium download shelf to mac gui. This is just a
18 // wrapper class that forward everything to DownloadShelfController. 18 // wrapper class that forward everything to DownloadShelfController.
19 19
20 class DownloadShelfMac : public DownloadShelf { 20 class DownloadShelfMac : public DownloadShelf {
21 public: 21 public:
22 DownloadShelfMac(Browser* browser, DownloadShelfController* controller); 22 DownloadShelfMac(Browser* browser, DownloadShelfController* controller);
23 23
24 // DownloadShelf implementation. 24 // DownloadShelf implementation.
25 virtual bool IsShowing() const override; 25 bool IsShowing() const override;
26 virtual bool IsClosing() const override; 26 bool IsClosing() const override;
27 virtual Browser* browser() const override; 27 Browser* browser() const override;
28 28
29 protected: 29 protected:
30 virtual void DoAddDownload(content::DownloadItem* download) override; 30 void DoAddDownload(content::DownloadItem* download) override;
31 virtual void DoShow() override; 31 void DoShow() override;
32 virtual void DoClose(CloseReason reason) override; 32 void DoClose(CloseReason reason) override;
33 33
34 private: 34 private:
35 // The browser that owns this shelf. 35 // The browser that owns this shelf.
36 Browser* browser_; 36 Browser* browser_;
37 37
38 DownloadShelfController* shelf_controller_; // weak, owns us 38 DownloadShelfController* shelf_controller_; // weak, owns us
39 }; 39 };
40 40
41 #endif // CHROME_BROWSER_UI_COCOA_DOWNLOAD_DOWNLOAD_SHELF_MAC_H_ 41 #endif // CHROME_BROWSER_UI_COCOA_DOWNLOAD_DOWNLOAD_SHELF_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698