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 UI_BASE_WIN_SHELL_H_ | 5 #ifndef UI_BASE_WIN_SHELL_H_ |
6 #define UI_BASE_WIN_SHELL_H_ | 6 #define UI_BASE_WIN_SHELL_H_ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 | 9 |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
11 #include "ui/base/ui_export.h" | 11 #include "ui/base/ui_export.h" |
12 | 12 |
| 13 namespace base { |
13 class FilePath; | 14 class FilePath; |
| 15 } |
14 | 16 |
15 namespace ui { | 17 namespace ui { |
16 namespace win { | 18 namespace win { |
17 // Open or run a file via the Windows shell. In the event that there is no | 19 // Open or run a file via the Windows shell. In the event that there is no |
18 // default application registered for the file specified by 'full_path', | 20 // default application registered for the file specified by 'full_path', |
19 // ask the user, via the Windows "Open With" dialog. | 21 // ask the user, via the Windows "Open With" dialog. |
20 // Returns 'true' on successful open, 'false' otherwise. | 22 // Returns 'true' on successful open, 'false' otherwise. |
21 UI_EXPORT bool OpenItemViaShell(const FilePath& full_path); | 23 UI_EXPORT bool OpenItemViaShell(const base::FilePath& full_path); |
22 | 24 |
23 // The download manager now writes the alternate data stream with the | 25 // The download manager now writes the alternate data stream with the |
24 // zone on all downloads. This function is equivalent to OpenItemViaShell | 26 // zone on all downloads. This function is equivalent to OpenItemViaShell |
25 // without showing the zone warning dialog. | 27 // without showing the zone warning dialog. |
26 UI_EXPORT bool OpenItemViaShellNoZoneCheck(const FilePath& full_path); | 28 UI_EXPORT bool OpenItemViaShellNoZoneCheck(const base::FilePath& full_path); |
27 | 29 |
28 // Lower level function that allows opening of non-files like urls or GUIDs | 30 // Lower level function that allows opening of non-files like urls or GUIDs |
29 // don't use it if one of the above will do. |mask| is a valid combination | 31 // don't use it if one of the above will do. |mask| is a valid combination |
30 // of SEE_MASK_FLAG_XXX as stated in msdn. If there is no default application | 32 // of SEE_MASK_FLAG_XXX as stated in msdn. If there is no default application |
31 // registered for the item, it behaves the same as OpenItemViaShell. | 33 // registered for the item, it behaves the same as OpenItemViaShell. |
32 UI_EXPORT bool OpenAnyViaShell(const string16& full_path, | 34 UI_EXPORT bool OpenAnyViaShell(const string16& full_path, |
33 const string16& directory, | 35 const string16& directory, |
34 const string16& args, | 36 const string16& args, |
35 DWORD mask); | 37 DWORD mask); |
36 | 38 |
(...skipping 18 matching lines...) Expand all Loading... |
55 HWND hwnd); | 57 HWND hwnd); |
56 | 58 |
57 // Returns true if composition is available and turned on on the current | 59 // Returns true if composition is available and turned on on the current |
58 // platform. | 60 // platform. |
59 UI_EXPORT bool IsAeroGlassEnabled(); | 61 UI_EXPORT bool IsAeroGlassEnabled(); |
60 | 62 |
61 } // namespace win | 63 } // namespace win |
62 } // namespace ui | 64 } // namespace ui |
63 | 65 |
64 #endif // UI_BASE_WIN_SHELL_H_ | 66 #endif // UI_BASE_WIN_SHELL_H_ |
OLD | NEW |