| 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 contains the specification of setup main functions. | 5 // This file contains the specification of setup main functions. |
| 6 | 6 |
| 7 #ifndef CHROME_INSTALLER_SETUP_INSTALL_H_ | 7 #ifndef CHROME_INSTALLER_SETUP_INSTALL_H_ |
| 8 #define CHROME_INSTALLER_SETUP_INSTALL_H_ | 8 #define CHROME_INSTALLER_SETUP_INSTALL_H_ |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 // system-level equivalent of that shortcut is not present on the system. | 34 // system-level equivalent of that shortcut is not present on the system. |
| 35 INSTALL_SHORTCUT_CREATE_EACH_IF_NO_SYSTEM_LEVEL, | 35 INSTALL_SHORTCUT_CREATE_EACH_IF_NO_SYSTEM_LEVEL, |
| 36 // Replace all shortcuts that still exist with the most recent version of | 36 // Replace all shortcuts that still exist with the most recent version of |
| 37 // each individual shortcut. | 37 // each individual shortcut. |
| 38 INSTALL_SHORTCUT_REPLACE_EXISTING, | 38 INSTALL_SHORTCUT_REPLACE_EXISTING, |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 enum InstallShortcutLevel { | 41 enum InstallShortcutLevel { |
| 42 // Install shortcuts for the current user only. | 42 // Install shortcuts for the current user only. |
| 43 CURRENT_USER, | 43 CURRENT_USER, |
| 44 // Install global shortcuts visible to all users. This is no longer used on | 44 // Install global shortcuts visible to all users. Note: the Quick Launch |
| 45 // install and should only be used to update existing shortcuts on legacy | 45 // and taskbar pin shortcuts are still installed per-user (as they have no |
| 46 // installs. | 46 // all-users version). |
| 47 ALL_USERS, | 47 ALL_USERS, |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 // Escape |att_value| as per the XML AttValue production | 50 // Escape |att_value| as per the XML AttValue production |
| 51 // (http://www.w3.org/TR/2008/REC-xml-20081126/#NT-AttValue) for a value in | 51 // (http://www.w3.org/TR/2008/REC-xml-20081126/#NT-AttValue) for a value in |
| 52 // single quotes. | 52 // single quotes. |
| 53 void EscapeXmlAttributeValueInSingleQuotes(string16* att_value); | 53 void EscapeXmlAttributeValueInSingleQuotes(string16* att_value); |
| 54 | 54 |
| 55 // Creates VisualElementsManifest.xml beside chrome.exe in |src_path| if | 55 // Creates VisualElementsManifest.xml beside chrome.exe in |src_path| if |
| 56 // |src_path|\VisualElements exists. | 56 // |src_path|\VisualElements exists. |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 // Shortcut creation is skipped if the First Run beacon is present (unless | 127 // Shortcut creation is skipped if the First Run beacon is present (unless |
| 128 // |force| is set to true). | 128 // |force| is set to true). |
| 129 // |chrome| The installed product (must be a browser). | 129 // |chrome| The installed product (must be a browser). |
| 130 void HandleActiveSetupForBrowser(const FilePath& installation_root, | 130 void HandleActiveSetupForBrowser(const FilePath& installation_root, |
| 131 const Product& chrome, | 131 const Product& chrome, |
| 132 bool force); | 132 bool force); |
| 133 | 133 |
| 134 } // namespace installer | 134 } // namespace installer |
| 135 | 135 |
| 136 #endif // CHROME_INSTALLER_SETUP_INSTALL_H_ | 136 #endif // CHROME_INSTALLER_SETUP_INSTALL_H_ |
| OLD | NEW |