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

Side by Side Diff: app/win_util.h

Issue 112064: Linux: call xdg-open on downloaded files to open them. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix typos Created 11 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | app/win_util.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 (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-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 APP_WIN_UTIL_H_ 5 #ifndef APP_WIN_UTIL_H_
6 #define APP_WIN_UTIL_H_ 6 #define APP_WIN_UTIL_H_
7 7
8 #include <objbase.h> 8 #include <objbase.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 110
111 // Returns true if the current point is far enough from the origin that it 111 // Returns true if the current point is far enough from the origin that it
112 // would be considered a drag. 112 // would be considered a drag.
113 bool IsDrag(const POINT& origin, const POINT& current); 113 bool IsDrag(const POINT& origin, const POINT& current);
114 114
115 // Returns true if we are on Windows Vista and composition is enabled 115 // Returns true if we are on Windows Vista and composition is enabled
116 bool ShouldUseVistaFrame(); 116 bool ShouldUseVistaFrame();
117 117
118 // Open or run a file via the Windows shell. In the event that there is no 118 // Open or run a file via the Windows shell. In the event that there is no
119 // default application registered for the file specified by 'full_path', 119 // default application registered for the file specified by 'full_path',
120 // ask the user, via the Windows "Open With" dialog, for an application to use 120 // ask the user, via the Windows "Open With" dialog.
121 // if 'ask_for_app' is true.
122 // Returns 'true' on successful open, 'false' otherwise. 121 // Returns 'true' on successful open, 'false' otherwise.
123 bool OpenItemViaShell(const FilePath& full_path, bool ask_for_app); 122 bool OpenItemViaShell(const FilePath& full_path);
124 123
125 // The download manager now writes the alternate data stream with the 124 // The download manager now writes the alternate data stream with the
126 // zone on all downloads. This function is equivalent to OpenItemViaShell 125 // zone on all downloads. This function is equivalent to OpenItemViaShell
127 // without showing the zone warning dialog. 126 // without showing the zone warning dialog.
128 bool OpenItemViaShellNoZoneCheck(const FilePath& full_path, 127 bool OpenItemViaShellNoZoneCheck(const FilePath& full_path);
129 bool ask_for_app);
130 128
131 // Ask the user, via the Windows "Open With" dialog, for an application to use 129 // Ask the user, via the Windows "Open With" dialog, for an application to use
132 // to open the file specified by 'full_path'. 130 // to open the file specified by 'full_path'.
133 // Returns 'true' on successful open, 'false' otherwise. 131 // Returns 'true' on successful open, 'false' otherwise.
134 bool OpenItemWithExternalApp(const std::wstring& full_path); 132 bool OpenItemWithExternalApp(const std::wstring& full_path);
135 133
136 // Set up a filter for a Save/Open dialog, which will consist of |file_ext| file 134 // Set up a filter for a Save/Open dialog, which will consist of |file_ext| file
137 // extensions (internally separated by semicolons), |ext_desc| as the text 135 // extensions (internally separated by semicolons), |ext_desc| as the text
138 // descriptions of the |file_ext| types (optional), and (optionally) the default 136 // descriptions of the |file_ext| types (optional), and (optionally) the default
139 // 'All Files' view. The purpose of the filter is to show only files of a 137 // 'All Files' view. The purpose of the filter is to show only files of a
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 284
287 // Returns the system set window title font. 285 // Returns the system set window title font.
288 gfx::Font GetWindowTitleFont(); 286 gfx::Font GetWindowTitleFont();
289 287
290 // The thickness of an auto-hide taskbar in pixels. 288 // The thickness of an auto-hide taskbar in pixels.
291 extern const int kAutoHideTaskbarThicknessPx; 289 extern const int kAutoHideTaskbarThicknessPx;
292 290
293 } // namespace win_util 291 } // namespace win_util
294 292
295 #endif // APP_WIN_UTIL_H_ 293 #endif // APP_WIN_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | app/win_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698