OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_COCOA_DOWNLOAD_SHELF_MAC_H_ | 5 #ifndef CHROME_BROWSER_COCOA_DOWNLOAD_SHELF_MAC_H_ |
6 #define CHROME_BROWSER_COCOA_DOWNLOAD_SHELF_MAC_H_ | 6 #define CHROME_BROWSER_COCOA_DOWNLOAD_SHELF_MAC_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 17 matching lines...) Expand all Loading... |
28 DownloadShelfController* controller); | 28 DownloadShelfController* controller); |
29 | 29 |
30 // DownloadShelf implementation. | 30 // DownloadShelf implementation. |
31 virtual void AddDownload(BaseDownloadItemModel* download_model); | 31 virtual void AddDownload(BaseDownloadItemModel* download_model); |
32 virtual bool IsShowing() const; | 32 virtual bool IsShowing() const; |
33 virtual bool IsClosing() const; | 33 virtual bool IsClosing() const; |
34 virtual void Show(); | 34 virtual void Show(); |
35 virtual void Close(); | 35 virtual void Close(); |
36 | 36 |
37 private: | 37 private: |
38 // The download items we have added to our shelf. | |
39 std::vector<DownloadItemMac*> download_items_; | |
40 | |
41 DownloadShelfController* shelf_controller_; // weak, owns us | 38 DownloadShelfController* shelf_controller_; // weak, owns us |
42 }; | 39 }; |
43 | 40 |
44 #endif // CHROME_BROWSER_COCOA_DOWNLOAD_SHELF_MAC_H_ | 41 #endif // CHROME_BROWSER_COCOA_DOWNLOAD_SHELF_MAC_H_ |
OLD | NEW |