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. | |
46 UI_EXPORT bool PreventWinowPinning(HWND hwnd); | |
jianli
2013/08/19 18:39:54
typo: Winow.
consider name the function as Preven
zhchbin
2013/08/20 06:26:34
Done.
| |
47 | |
44 // Sets the application id given as the Application Model ID for the window | 48 // 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 | 49 // specified. This method is used to insure that different web applications |
46 // do not group together on the Win7 task bar. | 50 // do not group together on the Win7 task bar. |
47 UI_EXPORT void SetAppIdForWindow(const string16& app_id, HWND hwnd); | 51 UI_EXPORT void SetAppIdForWindow(const string16& app_id, HWND hwnd); |
48 | 52 |
49 // Sets the application icon for the window specified. | 53 // Sets the application icon for the window specified. |
50 UI_EXPORT void SetAppIconForWindow(const string16& app_icon, HWND hwnd); | 54 UI_EXPORT void SetAppIconForWindow(const string16& app_icon, HWND hwnd); |
51 | 55 |
52 // Sets the relaunch command and relaunch display name for the window specified. | 56 // 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 | 57 // Windows will use this information for grouping on the taskbar, and to create |
54 // a shortcut if the window is pinned to the taskbar. | 58 // a shortcut if the window is pinned to the taskbar. |
55 UI_EXPORT void SetRelaunchDetailsForWindow(const string16& relaunch_command, | 59 UI_EXPORT void SetRelaunchDetailsForWindow(const string16& relaunch_command, |
56 const string16& display_name, | 60 const string16& display_name, |
57 HWND hwnd); | 61 HWND hwnd); |
58 | 62 |
59 // Returns true if composition is available and turned on on the current | 63 // Returns true if composition is available and turned on on the current |
60 // platform. | 64 // platform. |
61 UI_EXPORT bool IsAeroGlassEnabled(); | 65 UI_EXPORT bool IsAeroGlassEnabled(); |
62 | 66 |
63 } // namespace win | 67 } // namespace win |
64 } // namespace ui | 68 } // namespace ui |
65 | 69 |
66 #endif // UI_BASE_WIN_SHELL_H_ | 70 #endif // UI_BASE_WIN_SHELL_H_ |
OLD | NEW |