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

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

Issue 7477008: Remove explicit keyword from multi-argument constructors (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/browser/download/download_shelf.h" 11 #include "chrome/browser/download/download_shelf.h"
12 12
13 class BaseDownloadItemModel; 13 class BaseDownloadItemModel;
14 class CustomDrawButton; 14 class CustomDrawButton;
15 class DownloadItemMac; 15 class DownloadItemMac;
16 16
17 @class ShelfView; 17 @class ShelfView;
18 @class DownloadShelfController; 18 @class DownloadShelfController;
19 19
20 // A class to bridge the chromium download shelf to mac gui. This is just a 20 // A class to bridge the chromium download shelf to mac gui. This is just a
21 // wrapper class that forward everything to DownloadShelfController. 21 // wrapper class that forward everything to DownloadShelfController.
22 22
23 class DownloadShelfMac : public DownloadShelf { 23 class DownloadShelfMac : public DownloadShelf {
24 public: 24 public:
25 explicit DownloadShelfMac(Browser* browser, 25 DownloadShelfMac(Browser* browser, DownloadShelfController* controller);
26 DownloadShelfController* controller);
27 26
28 // DownloadShelf implementation. 27 // DownloadShelf implementation.
29 virtual void AddDownload(BaseDownloadItemModel* download_model); 28 virtual void AddDownload(BaseDownloadItemModel* download_model);
30 virtual bool IsShowing() const; 29 virtual bool IsShowing() const;
31 virtual bool IsClosing() const; 30 virtual bool IsClosing() const;
32 virtual void Show(); 31 virtual void Show();
33 virtual void Close(); 32 virtual void Close();
34 virtual Browser* browser() const; 33 virtual Browser* browser() const;
35 34
36 private: 35 private:
37 // The browser that owns this shelf. 36 // The browser that owns this shelf.
38 Browser* browser_; 37 Browser* browser_;
39 38
40 DownloadShelfController* shelf_controller_; // weak, owns us 39 DownloadShelfController* shelf_controller_; // weak, owns us
41 }; 40 };
42 41
43 #endif // CHROME_BROWSER_UI_COCOA_DOWNLOAD_DOWNLOAD_SHELF_MAC_H_ 42 #endif // CHROME_BROWSER_UI_COCOA_DOWNLOAD_DOWNLOAD_SHELF_MAC_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_init.cc ('k') | chrome/browser/ui/gtk/bookmarks/bookmark_bar_instructions_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698