| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_COMMANDS_H_ | 5 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_COMMANDS_H_ |
| 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_COMMANDS_H_ | 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_COMMANDS_H_ |
| 7 | 7 |
| 8 #include "base/gtest_prod_util.h" | 8 #include "base/gtest_prod_util.h" |
| 9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
| 10 #include "build/build_config.h" |
| 10 #include "chrome/browser/ui/browser.h" | 11 #include "chrome/browser/ui/browser.h" |
| 11 #include "content/public/browser/download_item.h" | 12 #include "content/public/browser/download_item.h" |
| 12 #include "content/public/browser/page_navigator.h" | 13 #include "content/public/browser/page_navigator.h" |
| 13 #include "ui/gfx/image/image.h" | 14 #include "ui/gfx/image/image.h" |
| 14 | 15 |
| 15 class DownloadCommands { | 16 class DownloadCommands { |
| 16 public: | 17 public: |
| 17 enum Command { | 18 enum Command { |
| 18 SHOW_IN_FOLDER = 1, // Open a folder view window with the item selected. | 19 SHOW_IN_FOLDER = 1, // Open a folder view window with the item selected. |
| 19 OPEN_WHEN_COMPLETE, // Open the download when it's finished. | 20 OPEN_WHEN_COMPLETE, // Open the download when it's finished. |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 | 54 |
| 54 Browser* GetBrowser() const; | 55 Browser* GetBrowser() const; |
| 55 int GetCommandIconId(Command command) const; | 56 int GetCommandIconId(Command command) const; |
| 56 GURL GetLearnMoreURLForInterruptedDownload() const; | 57 GURL GetLearnMoreURLForInterruptedDownload() const; |
| 57 void CopyFileAsImageToClipboard() const; | 58 void CopyFileAsImageToClipboard() const; |
| 58 | 59 |
| 59 content::DownloadItem* const download_item_; | 60 content::DownloadItem* const download_item_; |
| 60 }; | 61 }; |
| 61 | 62 |
| 62 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_COMMANDS_H_ | 63 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_COMMANDS_H_ |
| OLD | NEW |