diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-28 20:29:40 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-28 20:29:40 +0000 |
commit | de86a8510c9c8f70f27ce41b425a82c416f987e2 (patch) | |
tree | b1442d4b7bd4a856c1389c908f7fd9298ec81270 /app/win_util.h | |
parent | fc7c36a2c51aeba1da2495ffa5f6944179b93974 (diff) | |
download | chromium_src-de86a8510c9c8f70f27ce41b425a82c416f987e2.zip chromium_src-de86a8510c9c8f70f27ce41b425a82c416f987e2.tar.gz chromium_src-de86a8510c9c8f70f27ce41b425a82c416f987e2.tar.bz2 |
Linux: call xdg-open on downloaded files to open them.
BUG=12299
TEST=1) right click/save as on some image. Clicking on the download item's filename area should launch it in some image viewer (assuming xdg-open works for you---as it happens, ubuntu broke xdg-open for desktops that are not gnome, kde, or xfce). 2) Download a large file. Click on the download item before it is finished. The text should change to "opening in..." and the checkbox in the dropdown menu should show as checked. 3) completed downloads should have the "open when finished" menu item replaced by the "open" menu item. Selecting that should also open the download.
Review URL: http://codereview.chromium.org/112064
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17106 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/win_util.h')
-rw-r--r-- | app/win_util.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/app/win_util.h b/app/win_util.h index 19bbba7..be5f325 100644 --- a/app/win_util.h +++ b/app/win_util.h @@ -117,16 +117,14 @@ bool ShouldUseVistaFrame(); // Open or run a file via the Windows shell. In the event that there is no // default application registered for the file specified by 'full_path', -// ask the user, via the Windows "Open With" dialog, for an application to use -// if 'ask_for_app' is true. +// ask the user, via the Windows "Open With" dialog. // Returns 'true' on successful open, 'false' otherwise. -bool OpenItemViaShell(const FilePath& full_path, bool ask_for_app); +bool OpenItemViaShell(const FilePath& full_path); // The download manager now writes the alternate data stream with the // zone on all downloads. This function is equivalent to OpenItemViaShell // without showing the zone warning dialog. -bool OpenItemViaShellNoZoneCheck(const FilePath& full_path, - bool ask_for_app); +bool OpenItemViaShellNoZoneCheck(const FilePath& full_path); // Ask the user, via the Windows "Open With" dialog, for an application to use // to open the file specified by 'full_path'. |