| 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_DOWNLOAD_DOWNLOAD_SHELF_H_ | 5 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SHELF_H_ |
| 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SHELF_H_ | 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SHELF_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 // Returns whether the download shelf is showing the close animation. | 41 // Returns whether the download shelf is showing the close animation. |
| 42 virtual bool IsClosing() const = 0; | 42 virtual bool IsClosing() const = 0; |
| 43 | 43 |
| 44 // Opens the shelf. | 44 // Opens the shelf. |
| 45 virtual void Show() = 0; | 45 virtual void Show() = 0; |
| 46 | 46 |
| 47 // Closes the shelf. | 47 // Closes the shelf. |
| 48 virtual void Close() = 0; | 48 virtual void Close() = 0; |
| 49 | 49 |
| 50 Browser* browser() { return browser_; } |
| 51 |
| 50 protected: | 52 protected: |
| 51 Browser* browser_; | 53 Browser* browser_; |
| 52 | 54 |
| 53 private: | 55 private: |
| 54 DISALLOW_COPY_AND_ASSIGN(DownloadShelf); | 56 DISALLOW_COPY_AND_ASSIGN(DownloadShelf); |
| 55 }; | 57 }; |
| 56 | 58 |
| 57 // Logic for the download shelf context menu. Platform specific subclasses are | 59 // Logic for the download shelf context menu. Platform specific subclasses are |
| 58 // responsible for creating and running the menu. | 60 // responsible for creating and running the menu. |
| 59 class DownloadShelfContextMenu { | 61 class DownloadShelfContextMenu { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 82 DownloadItem* download_; | 84 DownloadItem* download_; |
| 83 | 85 |
| 84 // A model to control the cancel behavior. | 86 // A model to control the cancel behavior. |
| 85 BaseDownloadItemModel* model_; | 87 BaseDownloadItemModel* model_; |
| 86 | 88 |
| 87 private: | 89 private: |
| 88 DISALLOW_COPY_AND_ASSIGN(DownloadShelfContextMenu); | 90 DISALLOW_COPY_AND_ASSIGN(DownloadShelfContextMenu); |
| 89 }; | 91 }; |
| 90 | 92 |
| 91 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SHELF_H_ | 93 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SHELF_H_ |
| OLD | NEW |