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 // This file declares methods that are useful for integrating Chrome in | 5 // This file declares methods that are useful for integrating Chrome in |
6 // Windows shell. These methods are all static and currently part of | 6 // Windows shell. These methods are all static and currently part of |
7 // ShellUtil class. | 7 // ShellUtil class. |
8 | 8 |
9 #ifndef CHROME_INSTALLER_UTIL_SHELL_UTIL_H_ | 9 #ifndef CHROME_INSTALLER_UTIL_SHELL_UTIL_H_ |
10 #define CHROME_INSTALLER_UTIL_SHELL_UTIL_H_ | 10 #define CHROME_INSTALLER_UTIL_SHELL_UTIL_H_ |
(...skipping 26 matching lines...) Expand all Loading... | |
37 UNKNOWN_DEFAULT, | 37 UNKNOWN_DEFAULT, |
38 NOT_DEFAULT, | 38 NOT_DEFAULT, |
39 IS_DEFAULT, | 39 IS_DEFAULT, |
40 }; | 40 }; |
41 | 41 |
42 // Typical shortcut directories. Resolved in GetShortcutPath(). | 42 // Typical shortcut directories. Resolved in GetShortcutPath(). |
43 enum ShortcutLocation { | 43 enum ShortcutLocation { |
44 SHORTCUT_LOCATION_DESKTOP, | 44 SHORTCUT_LOCATION_DESKTOP, |
45 SHORTCUT_LOCATION_QUICK_LAUNCH, | 45 SHORTCUT_LOCATION_QUICK_LAUNCH, |
46 SHORTCUT_LOCATION_START_MENU, | 46 SHORTCUT_LOCATION_START_MENU, |
47 // TODO(mgiuca): add SHORTCUT_LOCATION_START_MENU_CHROME_APPS_DIR here. | |
gab
2013/04/29 21:34:44
FYI this will conflict with https://codereview.chr
gab
2013/04/29 21:34:44
I don't think a TODO is required here since none o
gab
2013/04/29 21:45:28
Seems indeed that https://codereview.chromium.org/
Matt Giuca
2013/04/30 01:14:09
Hi Gab,
Yes, I'm aware of this CL (it was my sugg
gab
2013/04/30 15:00:24
I see, thanks for clarifying, I'd prefer not to ha
| |
47 }; | 48 }; |
48 | 49 |
49 enum ShortcutOperation { | 50 enum ShortcutOperation { |
50 // Create a new shortcut (overwriting if necessary). | 51 // Create a new shortcut (overwriting if necessary). |
51 SHELL_SHORTCUT_CREATE_ALWAYS, | 52 SHELL_SHORTCUT_CREATE_ALWAYS, |
52 // Create the per-user shortcut only if its system-level equivalent (with | 53 // Create the per-user shortcut only if its system-level equivalent (with |
53 // the same name) is not present. | 54 // the same name) is not present. |
54 SHELL_SHORTCUT_CREATE_IF_NO_SYSTEM_LEVEL, | 55 SHELL_SHORTCUT_CREATE_IF_NO_SYSTEM_LEVEL, |
55 // Overwrite an existing shortcut (fail if the shortcut doesn't exist). | 56 // Overwrite an existing shortcut (fail if the shortcut doesn't exist). |
56 // If the arguments are not specified on the new shortcut, keep the old | 57 // If the arguments are not specified on the new shortcut, keep the old |
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
555 // required by the base32 standard for inputs that aren't a multiple of 5 | 556 // required by the base32 standard for inputs that aren't a multiple of 5 |
556 // bytes. | 557 // bytes. |
557 static string16 ByteArrayToBase32(const uint8* bytes, size_t size); | 558 static string16 ByteArrayToBase32(const uint8* bytes, size_t size); |
558 | 559 |
559 private: | 560 private: |
560 DISALLOW_COPY_AND_ASSIGN(ShellUtil); | 561 DISALLOW_COPY_AND_ASSIGN(ShellUtil); |
561 }; | 562 }; |
562 | 563 |
563 | 564 |
564 #endif // CHROME_INSTALLER_UTIL_SHELL_UTIL_H_ | 565 #endif // CHROME_INSTALLER_UTIL_SHELL_UTIL_H_ |
OLD | NEW |