Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2010 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 "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; | |
| 15 class DownloadItemMac; | |
| 16 | 14 |
| 17 @class ShelfView; | 15 @class ShelfView; |
|
Mark Mentovai
2011/11/11 17:19:35
Me too!
Lei Zhang
2011/11/11 21:05:20
Done. My regexp doesn't take @class into account.
| |
| 18 @class DownloadShelfController; | 16 @class DownloadShelfController; |
| 19 | 17 |
| 20 // 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 |
| 21 // wrapper class that forward everything to DownloadShelfController. | 19 // wrapper class that forward everything to DownloadShelfController. |
| 22 | 20 |
| 23 class DownloadShelfMac : public DownloadShelf { | 21 class DownloadShelfMac : public DownloadShelf { |
| 24 public: | 22 public: |
| 25 DownloadShelfMac(Browser* browser, DownloadShelfController* controller); | 23 DownloadShelfMac(Browser* browser, DownloadShelfController* controller); |
| 26 | 24 |
| 27 // DownloadShelf implementation. | 25 // DownloadShelf implementation. |
| 28 virtual void AddDownload(BaseDownloadItemModel* download_model); | 26 virtual void AddDownload(BaseDownloadItemModel* download_model); |
| 29 virtual bool IsShowing() const; | 27 virtual bool IsShowing() const; |
| 30 virtual bool IsClosing() const; | 28 virtual bool IsClosing() const; |
| 31 virtual void Show(); | 29 virtual void Show(); |
| 32 virtual void Close(); | 30 virtual void Close(); |
| 33 virtual Browser* browser() const; | 31 virtual Browser* browser() const; |
| 34 | 32 |
| 35 private: | 33 private: |
| 36 // The browser that owns this shelf. | 34 // The browser that owns this shelf. |
| 37 Browser* browser_; | 35 Browser* browser_; |
| 38 | 36 |
| 39 DownloadShelfController* shelf_controller_; // weak, owns us | 37 DownloadShelfController* shelf_controller_; // weak, owns us |
| 40 }; | 38 }; |
| 41 | 39 |
| 42 #endif // CHROME_BROWSER_UI_COCOA_DOWNLOAD_DOWNLOAD_SHELF_MAC_H_ | 40 #endif // CHROME_BROWSER_UI_COCOA_DOWNLOAD_DOWNLOAD_SHELF_MAC_H_ |
| OLD | NEW |