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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 options |= PROPERTIES_ICON; | 136 options |= PROPERTIES_ICON; |
137 } | 137 } |
138 | 138 |
139 // Sets the app model id for the shortcut (Win7+). | 139 // Sets the app model id for the shortcut (Win7+). |
140 void set_app_id(const base::string16& app_id_in) { | 140 void set_app_id(const base::string16& app_id_in) { |
141 app_id = app_id_in; | 141 app_id = app_id_in; |
142 options |= PROPERTIES_APP_ID; | 142 options |= PROPERTIES_APP_ID; |
143 } | 143 } |
144 | 144 |
145 // Forces the shortcut's name to |shortcut_name_in|. | 145 // Forces the shortcut's name to |shortcut_name_in|. |
146 // Default: the current distribution's GetShortcutName(SHORTCUT_CHROME). | 146 // Default: the current distribution's GetShortcutName(). |
147 // The ".lnk" extension will automatically be added to this name. | 147 // The ".lnk" extension will automatically be added to this name. |
148 void set_shortcut_name(const base::string16& shortcut_name_in) { | 148 void set_shortcut_name(const base::string16& shortcut_name_in) { |
149 shortcut_name = shortcut_name_in; | 149 shortcut_name = shortcut_name_in; |
150 options |= PROPERTIES_SHORTCUT_NAME; | 150 options |= PROPERTIES_SHORTCUT_NAME; |
151 } | 151 } |
152 | 152 |
153 // Sets whether to pin this shortcut to the taskbar after creating it | 153 // Sets whether to pin this shortcut to the taskbar after creating it |
154 // (ignored if the shortcut is only being updated). | 154 // (ignored if the shortcut is only being updated). |
155 // Note: This property doesn't have a mask in |options|. | 155 // Note: This property doesn't have a mask in |options|. |
156 void set_pin_to_taskbar(bool pin_to_taskbar_in) { | 156 void set_pin_to_taskbar(bool pin_to_taskbar_in) { |
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
654 // Set/CreateRegWorkItems and runs them using WorkItemList. | 654 // Set/CreateRegWorkItems and runs them using WorkItemList. |
655 static bool AddRegistryEntries(HKEY root, | 655 static bool AddRegistryEntries(HKEY root, |
656 const ScopedVector<RegistryEntry>& entries); | 656 const ScopedVector<RegistryEntry>& entries); |
657 | 657 |
658 private: | 658 private: |
659 DISALLOW_COPY_AND_ASSIGN(ShellUtil); | 659 DISALLOW_COPY_AND_ASSIGN(ShellUtil); |
660 }; | 660 }; |
661 | 661 |
662 | 662 |
663 #endif // CHROME_INSTALLER_UTIL_SHELL_UTIL_H_ | 663 #endif // CHROME_INSTALLER_UTIL_SHELL_UTIL_H_ |
OLD | NEW |