Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(205)

Side by Side Diff: base/win/shortcut.h

Issue 2909943003: Removing useless Win7 checks + standardize its use (Closed)
Patch Set: Various nits Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « base/test/test_shortcut_win.cc ('k') | base/win/shortcut.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « base/test/test_shortcut_win.cc ('k') | base/win/shortcut.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698