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

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

Issue 10911345: Remove TODO I have already done. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 // The localized description of the shortcut. 89 // The localized description of the shortcut.
90 // The length of this string must be less than MAX_PATH. 90 // The length of this string must be less than MAX_PATH.
91 string16 description; 91 string16 description;
92 // The path to the icon (can be a dll or exe, in which case |icon_index| is 92 // The path to the icon (can be a dll or exe, in which case |icon_index| is
93 // the resource id). 93 // the resource id).
94 FilePath icon; 94 FilePath icon;
95 int icon_index; 95 int icon_index;
96 // The app model id for the shortcut (Win7+). 96 // The app model id for the shortcut (Win7+).
97 string16 app_id; 97 string16 app_id;
98 // Whether this is a dual mode shortcut (Win8+). 98 // Whether this is a dual mode shortcut (Win8+).
99 // For now this property can only be set to true (i.e. once set it cannot be
100 // unset).
101 // TODO (gab): Make it possible to set this property to false.
102 bool dual_mode; 99 bool dual_mode;
103 // Bitfield made of IndividualProperties. Properties set in |options| will be 100 // Bitfield made of IndividualProperties. Properties set in |options| will be
104 // set on the shortcut, others will be ignored. 101 // set on the shortcut, others will be ignored.
105 uint32 options; 102 uint32 options;
106 }; 103 };
107 104
108 // This method creates (or updates) a shortcut link at |shortcut_path| using the 105 // This method creates (or updates) a shortcut link at |shortcut_path| using the
109 // information given through |properties|. 106 // information given through |properties|.
110 // Ensure you have initialized COM before calling into this function. 107 // Ensure you have initialized COM before calling into this function.
111 // |operation|: a choice from the ShortcutOperation enum. 108 // |operation|: a choice from the ShortcutOperation enum.
(...skipping 21 matching lines...) Expand all
133 BASE_EXPORT bool TaskbarPinShortcutLink(const wchar_t* shortcut); 130 BASE_EXPORT bool TaskbarPinShortcutLink(const wchar_t* shortcut);
134 131
135 // Unpins a shortcut from the Windows 7 taskbar. The shortcut must exist and 132 // Unpins a shortcut from the Windows 7 taskbar. The shortcut must exist and
136 // already be pinned to the taskbar. 133 // already be pinned to the taskbar.
137 BASE_EXPORT bool TaskbarUnpinShortcutLink(const wchar_t* shortcut); 134 BASE_EXPORT bool TaskbarUnpinShortcutLink(const wchar_t* shortcut);
138 135
139 } // namespace win 136 } // namespace win
140 } // namespace base 137 } // namespace base
141 138
142 #endif // BASE_WIN_SHORTCUT_H_ 139 #endif // BASE_WIN_SHORTCUT_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698