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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 }; | 47 }; |
48 | 48 |
49 enum ShortcutOperation { | 49 enum ShortcutOperation { |
50 // Create a new shortcut (overwriting if necessary). | 50 // Create a new shortcut (overwriting if necessary). |
51 SHELL_SHORTCUT_CREATE_ALWAYS, | 51 SHELL_SHORTCUT_CREATE_ALWAYS, |
52 // Create the per-user shortcut only if its system-level equivalent is not | 52 // Create the per-user shortcut only if its system-level equivalent (with |
53 // present. | 53 // the same name) is not present. |
54 SHELL_SHORTCUT_CREATE_IF_NO_SYSTEM_LEVEL, | 54 SHELL_SHORTCUT_CREATE_IF_NO_SYSTEM_LEVEL, |
55 // Overwrite an existing shortcut (fail if the shortcut doesn't exist). | 55 // 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 | 56 // If the arguments are not specified on the new shortcut, keep the old |
57 // shortcut's arguments. | 57 // shortcut's arguments. |
58 SHELL_SHORTCUT_REPLACE_EXISTING, | 58 SHELL_SHORTCUT_REPLACE_EXISTING, |
59 // Update specified properties only on an existing shortcut. | 59 // Update specified properties only on an existing shortcut. |
60 SHELL_SHORTCUT_UPDATE_EXISTING, | 60 SHELL_SHORTCUT_UPDATE_EXISTING, |
61 }; | 61 }; |
62 | 62 |
63 // Properties for shortcuts. Properties set will be applied to | 63 // Properties for shortcuts. Properties set will be applied to |
(...skipping 491 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 | 555 // required by the base32 standard for inputs that aren't a multiple of 5 |
556 // bytes. | 556 // bytes. |
557 static string16 ByteArrayToBase32(const uint8* bytes, size_t size); | 557 static string16 ByteArrayToBase32(const uint8* bytes, size_t size); |
558 | 558 |
559 private: | 559 private: |
560 DISALLOW_COPY_AND_ASSIGN(ShellUtil); | 560 DISALLOW_COPY_AND_ASSIGN(ShellUtil); |
561 }; | 561 }; |
562 | 562 |
563 | 563 |
564 #endif // CHROME_INSTALLER_UTIL_SHELL_UTIL_H_ | 564 #endif // CHROME_INSTALLER_UTIL_SHELL_UTIL_H_ |
OLD | NEW |