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/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 UI_EXPORT bool OpenAnyViaShell(const string16& full_path, | 34 UI_EXPORT bool OpenAnyViaShell(const string16& full_path, |
35 const string16& directory, | 35 const string16& directory, |
36 const string16& args, | 36 const string16& args, |
37 DWORD mask); | 37 DWORD mask); |
38 | 38 |
39 // Ask the user, via the Windows "Open With" dialog, for an application to use | 39 // Ask the user, via the Windows "Open With" dialog, for an application to use |
40 // to open the file specified by 'full_path'. | 40 // to open the file specified by 'full_path'. |
41 // Returns 'true' on successful open, 'false' otherwise. | 41 // Returns 'true' on successful open, 'false' otherwise. |
42 bool OpenItemWithExternalApp(const string16& full_path); | 42 bool OpenItemWithExternalApp(const string16& full_path); |
43 | 43 |
| 44 // Disables the ability of the specified window to be pinned to the taskbar or |
| 45 // the Start menu. This will remove "Pin this program to taskbar" from the |
| 46 // taskbar menu of the specified window. |
| 47 UI_EXPORT bool PreventWindowFromPinning(HWND hwnd); |
| 48 |
44 // Sets the application id given as the Application Model ID for the window | 49 // Sets the application id given as the Application Model ID for the window |
45 // specified. This method is used to insure that different web applications | 50 // specified. This method is used to insure that different web applications |
46 // do not group together on the Win7 task bar. | 51 // do not group together on the Win7 task bar. |
47 UI_EXPORT void SetAppIdForWindow(const string16& app_id, HWND hwnd); | 52 UI_EXPORT void SetAppIdForWindow(const string16& app_id, HWND hwnd); |
48 | 53 |
49 // Sets the application icon for the window specified. | 54 // Sets the application icon for the window specified. |
50 UI_EXPORT void SetAppIconForWindow(const string16& app_icon, HWND hwnd); | 55 UI_EXPORT void SetAppIconForWindow(const string16& app_icon, HWND hwnd); |
51 | 56 |
52 // Sets the relaunch command and relaunch display name for the window specified. | 57 // Sets the relaunch command and relaunch display name for the window specified. |
53 // Windows will use this information for grouping on the taskbar, and to create | 58 // Windows will use this information for grouping on the taskbar, and to create |
54 // a shortcut if the window is pinned to the taskbar. | 59 // a shortcut if the window is pinned to the taskbar. |
55 UI_EXPORT void SetRelaunchDetailsForWindow(const string16& relaunch_command, | 60 UI_EXPORT void SetRelaunchDetailsForWindow(const string16& relaunch_command, |
56 const string16& display_name, | 61 const string16& display_name, |
57 HWND hwnd); | 62 HWND hwnd); |
58 | 63 |
59 // Returns true if composition is available and turned on on the current | 64 // Returns true if composition is available and turned on on the current |
60 // platform. | 65 // platform. |
61 UI_EXPORT bool IsAeroGlassEnabled(); | 66 UI_EXPORT bool IsAeroGlassEnabled(); |
62 | 67 |
63 } // namespace win | 68 } // namespace win |
64 } // namespace ui | 69 } // namespace ui |
65 | 70 |
66 #endif // UI_BASE_WIN_SHELL_H_ | 71 #endif // UI_BASE_WIN_SHELL_H_ |
OLD | NEW |