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

Side by Side Diff: chrome/browser/ui/cocoa/download/download_shelf_mac.h

Issue 8603006: Add OVERRIDE to chrome/browser/ui/cocoa/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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_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 #pragma once 7 #pragma once
8 8
9 #import <Cocoa/Cocoa.h> 9 #import <Cocoa/Cocoa.h>
10 10
11 #include "base/compiler_specific.h"
11 #include "chrome/browser/download/download_shelf.h" 12 #include "chrome/browser/download/download_shelf.h"
12 13
13 class BaseDownloadItemModel; 14 class BaseDownloadItemModel;
14 15
15 @class DownloadShelfController; 16 @class DownloadShelfController;
16 17
17 // A class to bridge the chromium download shelf to mac gui. This is just a 18 // A class to bridge the chromium download shelf to mac gui. This is just a
18 // wrapper class that forward everything to DownloadShelfController. 19 // wrapper class that forward everything to DownloadShelfController.
19 20
20 class DownloadShelfMac : public DownloadShelf { 21 class DownloadShelfMac : public DownloadShelf {
21 public: 22 public:
22 DownloadShelfMac(Browser* browser, DownloadShelfController* controller); 23 DownloadShelfMac(Browser* browser, DownloadShelfController* controller);
23 24
24 // DownloadShelf implementation. 25 // DownloadShelf implementation.
25 virtual void AddDownload(BaseDownloadItemModel* download_model); 26 virtual void AddDownload(BaseDownloadItemModel* download_model) OVERRIDE;
26 virtual bool IsShowing() const; 27 virtual bool IsShowing() const OVERRIDE;
27 virtual bool IsClosing() const; 28 virtual bool IsClosing() const OVERRIDE;
28 virtual void Show(); 29 virtual void Show() OVERRIDE;
29 virtual void Close(); 30 virtual void Close() OVERRIDE;
30 virtual Browser* browser() const; 31 virtual Browser* browser() const OVERRIDE;
31 32
32 private: 33 private:
33 // The browser that owns this shelf. 34 // The browser that owns this shelf.
34 Browser* browser_; 35 Browser* browser_;
35 36
36 DownloadShelfController* shelf_controller_; // weak, owns us 37 DownloadShelfController* shelf_controller_; // weak, owns us
37 }; 38 };
38 39
39 #endif // CHROME_BROWSER_UI_COCOA_DOWNLOAD_DOWNLOAD_SHELF_MAC_H_ 40 #endif // CHROME_BROWSER_UI_COCOA_DOWNLOAD_DOWNLOAD_SHELF_MAC_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/download/download_item_mac.h ('k') | chrome/browser/ui/cocoa/find_bar/find_bar_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698