OLD | NEW |
1 // Copyright (c) 2011 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_DOWNLOAD_DOWNLOAD_SHELF_CONTEXT_MENU_H_ | 5 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SHELF_CONTEXT_MENU_H_ |
6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SHELF_CONTEXT_MENU_H_ | 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SHELF_CONTEXT_MENU_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 SHOW_IN_FOLDER = 1, // Open a folder view window with the item selected. | 28 SHOW_IN_FOLDER = 1, // Open a folder view window with the item selected. |
29 OPEN_WHEN_COMPLETE, // Open the download when it's finished. | 29 OPEN_WHEN_COMPLETE, // Open the download when it's finished. |
30 ALWAYS_OPEN_TYPE, // Default this file extension to always open. | 30 ALWAYS_OPEN_TYPE, // Default this file extension to always open. |
31 PLATFORM_OPEN, // Open using platform handler. | 31 PLATFORM_OPEN, // Open using platform handler. |
32 CANCEL, // Cancel the download. | 32 CANCEL, // Cancel the download. |
33 TOGGLE_PAUSE, // Pause or resume a download. | 33 TOGGLE_PAUSE, // Pause or resume a download. |
34 DISCARD, // Discard the malicious download. | 34 DISCARD, // Discard the malicious download. |
35 KEEP, // Keep the malicious download. | 35 KEEP, // Keep the malicious download. |
36 LEARN_MORE_SCANNING, // Show information about download scanning. | 36 LEARN_MORE_SCANNING, // Show information about download scanning. |
37 LEARN_MORE_INTERRUPTED,// Show information about interrupted downloads. | 37 LEARN_MORE_INTERRUPTED,// Show information about interrupted downloads. |
38 REPORT, // Send the download to Google for analysis. | |
39 }; | 38 }; |
40 | 39 |
41 virtual ~DownloadShelfContextMenu(); | 40 virtual ~DownloadShelfContextMenu(); |
42 | 41 |
43 content::DownloadItem* download_item() const { return download_item_; } | 42 content::DownloadItem* download_item() const { return download_item_; } |
44 | 43 |
45 protected: | 44 protected: |
46 DownloadShelfContextMenu(content::DownloadItem* download_item, | 45 DownloadShelfContextMenu(content::DownloadItem* download_item, |
47 content::PageNavigator* navigator); | 46 content::PageNavigator* navigator); |
48 | 47 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 // Information source. | 84 // Information source. |
86 content::DownloadItem* download_item_; | 85 content::DownloadItem* download_item_; |
87 | 86 |
88 // Used to open tabs. | 87 // Used to open tabs. |
89 content::PageNavigator* navigator_; | 88 content::PageNavigator* navigator_; |
90 | 89 |
91 DISALLOW_COPY_AND_ASSIGN(DownloadShelfContextMenu); | 90 DISALLOW_COPY_AND_ASSIGN(DownloadShelfContextMenu); |
92 }; | 91 }; |
93 | 92 |
94 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SHELF_CONTEXT_MENU_H_ | 93 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SHELF_CONTEXT_MENU_H_ |
OLD | NEW |