| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 enum IndividualProperties { | 85 enum IndividualProperties { |
| 86 PROPERTIES_TARGET = 1 << 0, | 86 PROPERTIES_TARGET = 1 << 0, |
| 87 PROPERTIES_ARGUMENTS = 1 << 1, | 87 PROPERTIES_ARGUMENTS = 1 << 1, |
| 88 PROPERTIES_DESCRIPTION = 1 << 2, | 88 PROPERTIES_DESCRIPTION = 1 << 2, |
| 89 PROPERTIES_ICON = 1 << 3, | 89 PROPERTIES_ICON = 1 << 3, |
| 90 PROPERTIES_APP_ID = 1 << 4, | 90 PROPERTIES_APP_ID = 1 << 4, |
| 91 PROPERTIES_SHORTCUT_NAME = 1 << 5, | 91 PROPERTIES_SHORTCUT_NAME = 1 << 5, |
| 92 PROPERTIES_DUAL_MODE = 1 << 6, | 92 PROPERTIES_DUAL_MODE = 1 << 6, |
| 93 }; | 93 }; |
| 94 | 94 |
| 95 explicit ShortcutProperties(ShellChange level_in) | 95 explicit ShortcutProperties(ShellChange level_in); |
| 96 : level(level_in), icon_index(0), dual_mode(false), | 96 ~ShortcutProperties(); |
| 97 pin_to_taskbar(false), options(0U) {} | |
| 98 | 97 |
| 99 // Sets the target executable to launch from this shortcut. | 98 // Sets the target executable to launch from this shortcut. |
| 100 // This is mandatory when creating a shortcut. | 99 // This is mandatory when creating a shortcut. |
| 101 void set_target(const base::FilePath& target_in) { | 100 void set_target(const base::FilePath& target_in) { |
| 102 target = target_in; | 101 target = target_in; |
| 103 options |= PROPERTIES_TARGET; | 102 options |= PROPERTIES_TARGET; |
| 104 } | 103 } |
| 105 | 104 |
| 106 // Sets the arguments to be passed to |target| when launching from this | 105 // Sets the arguments to be passed to |target| when launching from this |
| 107 // shortcut. | 106 // shortcut. |
| (...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 633 // application, as given to AddFileAssociations. All information associated | 632 // application, as given to AddFileAssociations. All information associated |
| 634 // with this name will be deleted. | 633 // with this name will be deleted. |
| 635 static bool DeleteFileAssociations(const base::string16& prog_id); | 634 static bool DeleteFileAssociations(const base::string16& prog_id); |
| 636 | 635 |
| 637 private: | 636 private: |
| 638 DISALLOW_COPY_AND_ASSIGN(ShellUtil); | 637 DISALLOW_COPY_AND_ASSIGN(ShellUtil); |
| 639 }; | 638 }; |
| 640 | 639 |
| 641 | 640 |
| 642 #endif // CHROME_INSTALLER_UTIL_SHELL_UTIL_H_ | 641 #endif // CHROME_INSTALLER_UTIL_SHELL_UTIL_H_ |
| OLD | NEW |