| OLD | NEW |
| 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 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 public: | 24 public: |
| 25 explicit DownloadShelfMac(Browser* browser, | 25 explicit DownloadShelfMac(Browser* browser, |
| 26 DownloadShelfController* controller); | 26 DownloadShelfController* controller); |
| 27 | 27 |
| 28 // DownloadShelf implementation. | 28 // DownloadShelf implementation. |
| 29 virtual void AddDownload(BaseDownloadItemModel* download_model); | 29 virtual void AddDownload(BaseDownloadItemModel* download_model); |
| 30 virtual bool IsShowing() const; | 30 virtual bool IsShowing() const; |
| 31 virtual bool IsClosing() const; | 31 virtual bool IsClosing() const; |
| 32 virtual void Show(); | 32 virtual void Show(); |
| 33 virtual void Close(); | 33 virtual void Close(); |
| 34 virtual Browser* browser() const { return browser_; } | 34 virtual Browser* browser() const; |
| 35 | 35 |
| 36 private: | 36 private: |
| 37 // The browser that owns this shelf. | 37 // The browser that owns this shelf. |
| 38 Browser* browser_; | 38 Browser* browser_; |
| 39 | 39 |
| 40 DownloadShelfController* shelf_controller_; // weak, owns us | 40 DownloadShelfController* shelf_controller_; // weak, owns us |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 #endif // CHROME_BROWSER_UI_COCOA_DOWNLOAD_DOWNLOAD_SHELF_MAC_H_ | 43 #endif // CHROME_BROWSER_UI_COCOA_DOWNLOAD_DOWNLOAD_SHELF_MAC_H_ |
| OLD | NEW |