OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 BASE_WIN_SHORTCUT_H_ | 5 #ifndef BASE_WIN_SHORTCUT_H_ |
6 #define BASE_WIN_SHORTCUT_H_ | 6 #define BASE_WIN_SHORTCUT_H_ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 | 9 |
10 #include "base/base_export.h" | 10 #include "base/base_export.h" |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 // non-NULL). The function returns true if all requested fields are found | 148 // non-NULL). The function returns true if all requested fields are found |
149 // successfully. Callers can safely use the same variable for both | 149 // successfully. Callers can safely use the same variable for both |
150 // |shortcut_path| and |target_path|. | 150 // |shortcut_path| and |target_path|. |
151 BASE_EXPORT bool ResolveShortcut(const FilePath& shortcut_path, | 151 BASE_EXPORT bool ResolveShortcut(const FilePath& shortcut_path, |
152 FilePath* target_path, | 152 FilePath* target_path, |
153 string16* args); | 153 string16* args); |
154 | 154 |
155 // Pins a shortcut to the Windows 7 taskbar. The shortcut file must already | 155 // Pins a shortcut to the Windows 7 taskbar. The shortcut file must already |
156 // exist and be a shortcut that points to an executable. The app id of the | 156 // exist and be a shortcut that points to an executable. The app id of the |
157 // shortcut is used to group windows and must be set correctly. | 157 // shortcut is used to group windows and must be set correctly. |
158 BASE_EXPORT bool TaskbarPinShortcutLink(const wchar_t* shortcut); | 158 BASE_EXPORT bool TaskbarPinShortcutLink(const FilePath& shortcut); |
159 | 159 |
160 // Unpins a shortcut from the Windows 7 taskbar. The shortcut must exist and | 160 // Unpins a shortcut from the Windows 7 taskbar. The shortcut must exist and |
161 // already be pinned to the taskbar. The app id of the shortcut is used as the | 161 // already be pinned to the taskbar. The app id of the shortcut is used as the |
162 // identifier for the taskbar item to remove and must be set correctly. | 162 // identifier for the taskbar item to remove and must be set correctly. |
163 BASE_EXPORT bool TaskbarUnpinShortcutLink(const wchar_t* shortcut); | 163 BASE_EXPORT bool TaskbarUnpinShortcutLink(const FilePath& shortcut); |
164 | 164 |
165 } // namespace win | 165 } // namespace win |
166 } // namespace base | 166 } // namespace base |
167 | 167 |
168 #endif // BASE_WIN_SHORTCUT_H_ | 168 #endif // BASE_WIN_SHORTCUT_H_ |
OLD | NEW |