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 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 28 matching lines...) Expand all Loading... |
39 PROPERTIES_DESCRIPTION = 1U << 3, | 39 PROPERTIES_DESCRIPTION = 1U << 3, |
40 PROPERTIES_ICON = 1U << 4, | 40 PROPERTIES_ICON = 1U << 4, |
41 PROPERTIES_APP_ID = 1U << 5, | 41 PROPERTIES_APP_ID = 1U << 5, |
42 PROPERTIES_DUAL_MODE = 1U << 6, | 42 PROPERTIES_DUAL_MODE = 1U << 6, |
43 // Be sure to update the values below when adding a new property. | 43 // Be sure to update the values below when adding a new property. |
44 PROPERTIES_BASIC = PROPERTIES_TARGET | | 44 PROPERTIES_BASIC = PROPERTIES_TARGET | |
45 PROPERTIES_WORKING_DIR | | 45 PROPERTIES_WORKING_DIR | |
46 PROPERTIES_ARGUMENTS | | 46 PROPERTIES_ARGUMENTS | |
47 PROPERTIES_DESCRIPTION | | 47 PROPERTIES_DESCRIPTION | |
48 PROPERTIES_ICON, | 48 PROPERTIES_ICON, |
| 49 // TODO(pmonette): Get rid of PROPERTIES_WIN7 now that Windows 7 is the last |
| 50 // supported Windows version. |
49 PROPERTIES_WIN7 = PROPERTIES_APP_ID | PROPERTIES_DUAL_MODE, | 51 PROPERTIES_WIN7 = PROPERTIES_APP_ID | PROPERTIES_DUAL_MODE, |
50 PROPERTIES_ALL = PROPERTIES_BASIC | PROPERTIES_WIN7 | 52 PROPERTIES_ALL = PROPERTIES_BASIC | PROPERTIES_WIN7 |
51 }; | 53 }; |
52 | 54 |
53 ShortcutProperties(); | 55 ShortcutProperties(); |
54 ShortcutProperties(const ShortcutProperties& other); | 56 ShortcutProperties(const ShortcutProperties& other); |
55 ~ShortcutProperties(); | 57 ~ShortcutProperties(); |
56 | 58 |
57 void set_target(const FilePath& target_in) { | 59 void set_target(const FilePath& target_in) { |
58 target = target_in; | 60 target = target_in; |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 | 167 |
166 // Unpins a shortcut from the Windows 7+ taskbar. The |shortcut| must exist and | 168 // Unpins a shortcut from the Windows 7+ taskbar. The |shortcut| must exist and |
167 // already be pinned to the taskbar. The app id of the shortcut is used as the | 169 // already be pinned to the taskbar. The app id of the shortcut is used as the |
168 // identifier for the taskbar item to remove and must be set correctly. | 170 // identifier for the taskbar item to remove and must be set correctly. |
169 BASE_EXPORT bool UnpinShortcutFromTaskbar(const FilePath& shortcut); | 171 BASE_EXPORT bool UnpinShortcutFromTaskbar(const FilePath& shortcut); |
170 | 172 |
171 } // namespace win | 173 } // namespace win |
172 } // namespace base | 174 } // namespace base |
173 | 175 |
174 #endif // BASE_WIN_SHORTCUT_H_ | 176 #endif // BASE_WIN_SHORTCUT_H_ |
OLD | NEW |