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

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

Issue 1641513004: Update //base to chromium 9659b08ea5a34f889dc4166217f438095ddc10d2 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 10 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/win/scoped_variant.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 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
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_
OLDNEW
« no previous file with comments | « base/win/scoped_variant.cc ('k') | base/win/shortcut.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698