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

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

Issue 150216: Move download item to its own view and a xib, paving the way for a custom dow... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: minor Created 11 years, 5 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) 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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698