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" |
(...skipping 13 matching lines...) Expand all Loading... |
24 // zone on all downloads. This function is equivalent to OpenItemViaShell | 24 // zone on all downloads. This function is equivalent to OpenItemViaShell |
25 // without showing the zone warning dialog. | 25 // without showing the zone warning dialog. |
26 UI_EXPORT bool OpenItemViaShellNoZoneCheck(const FilePath& full_path); | 26 UI_EXPORT bool OpenItemViaShellNoZoneCheck(const FilePath& full_path); |
27 | 27 |
28 // Lower level function that allows opening of non-files like urls or GUIDs | 28 // 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 | 29 // 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 | 30 // 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. | 31 // registered for the item, it behaves the same as OpenItemViaShell. |
32 UI_EXPORT bool OpenAnyViaShell(const string16& full_path, | 32 UI_EXPORT bool OpenAnyViaShell(const string16& full_path, |
33 const string16& directory, | 33 const string16& directory, |
| 34 const string16& args, |
34 DWORD mask); | 35 DWORD mask); |
35 | 36 |
36 // Ask the user, via the Windows "Open With" dialog, for an application to use | 37 // Ask the user, via the Windows "Open With" dialog, for an application to use |
37 // to open the file specified by 'full_path'. | 38 // to open the file specified by 'full_path'. |
38 // Returns 'true' on successful open, 'false' otherwise. | 39 // Returns 'true' on successful open, 'false' otherwise. |
39 bool OpenItemWithExternalApp(const string16& full_path); | 40 bool OpenItemWithExternalApp(const string16& full_path); |
40 | 41 |
41 // Sets the application id given as the Application Model ID for the window | 42 // Sets the application id given as the Application Model ID for the window |
42 // specified. This method is used to insure that different web applications | 43 // specified. This method is used to insure that different web applications |
43 // do not group together on the Win7 task bar. | 44 // do not group together on the Win7 task bar. |
44 UI_EXPORT void SetAppIdForWindow(const string16& app_id, HWND hwnd); | 45 UI_EXPORT void SetAppIdForWindow(const string16& app_id, HWND hwnd); |
45 | 46 |
46 // Sets the application icon for the window specified. | 47 // Sets the application icon for the window specified. |
47 UI_EXPORT void SetAppIconForWindow(const string16& app_icon, HWND hwnd); | 48 UI_EXPORT void SetAppIconForWindow(const string16& app_icon, HWND hwnd); |
48 | 49 |
49 // Returns true if composition is available and turned on on the current | 50 // Returns true if composition is available and turned on on the current |
50 // platform. | 51 // platform. |
51 UI_EXPORT bool IsAeroGlassEnabled(); | 52 UI_EXPORT bool IsAeroGlassEnabled(); |
52 | 53 |
53 } // namespace win | 54 } // namespace win |
54 } // namespace ui | 55 } // namespace ui |
55 | 56 |
56 #endif // UI_BASE_WIN_SHELL_H_ | 57 #endif // UI_BASE_WIN_SHELL_H_ |
OLD | NEW |