Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(177)

Side by Side Diff: chrome/browser/download/download_commands.h

Issue 1084123004: [Downloads] Add context parameter to help center article URL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/download/download_commands.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/strings/string16.h" 9 #include "base/strings/string16.h"
9
10 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
11 #include "content/public/browser/download_item.h" 11 #include "content/public/browser/download_item.h"
12 #include "content/public/browser/page_navigator.h" 12 #include "content/public/browser/page_navigator.h"
13 #include "ui/gfx/image/image.h" 13 #include "ui/gfx/image/image.h"
14 14
15 class DownloadCommands { 15 class DownloadCommands {
16 public: 16 public:
17 enum Command { 17 enum Command {
18 SHOW_IN_FOLDER = 1, // Open a folder view window with the item selected. 18 SHOW_IN_FOLDER = 1, // Open a folder view window with the item selected.
19 OPEN_WHEN_COMPLETE, // Open the download when it's finished. 19 OPEN_WHEN_COMPLETE, // Open the download when it's finished.
(...skipping 20 matching lines...) Expand all
40 bool IsCommandVisible(Command command) const; 40 bool IsCommandVisible(Command command) const;
41 void ExecuteCommand(Command command); 41 void ExecuteCommand(Command command);
42 42
43 #if defined(OS_WIN) || defined(OS_LINUX) || \ 43 #if defined(OS_WIN) || defined(OS_LINUX) || \
44 (defined(OS_MACOSX) && !defined(OS_IOS)) 44 (defined(OS_MACOSX) && !defined(OS_IOS))
45 bool IsDownloadPdf() const; 45 bool IsDownloadPdf() const;
46 bool CanOpenPdfInSystemViewer() const; 46 bool CanOpenPdfInSystemViewer() const;
47 #endif 47 #endif
48 48
49 private: 49 private:
50 FRIEND_TEST_ALL_PREFIXES(
51 DownloadCommandsTest,
52 GetLearnMoreURLForInterruptedDownload_ContainsContext);
53
50 Browser* GetBrowser() const; 54 Browser* GetBrowser() const;
51 55 int GetCommandIconId(Command command) const;
52 int GetCommandIconId(Command command); 56 GURL GetLearnMoreURLForInterruptedDownload() const;
53
54 int GetAlwaysOpenStringId() const;
55 57
56 content::DownloadItem* const download_item_; 58 content::DownloadItem* const download_item_;
57 }; 59 };
58 60
59 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_COMMANDS_H_ 61 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_COMMANDS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/download/download_commands.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698