Index: chrome/installer/util/browser_distribution.h |
diff --git a/chrome/installer/util/browser_distribution.h b/chrome/installer/util/browser_distribution.h |
index ca67c0bc1b5d40d7b382c0dd8280cb43a92276b0..b308c04fecddd8223de6ef11c97ae9dcd7f031a3 100644 |
--- a/chrome/installer/util/browser_distribution.h |
+++ b/chrome/installer/util/browser_distribution.h |
@@ -29,6 +29,17 @@ class BrowserDistribution { |
NUM_TYPES |
}; |
+ enum ShortcutType { |
+ SHORTCUT_CHROME, |
+ SHORTCUT_CHROME_ALTERNATE, |
+ SHORTCUT_APP_LAUNCHER |
+ }; |
+ |
+ enum Subfolder { |
+ SUBFOLDER_CHROME, |
+ // TODO(calamity): add SUBFOLDER_APPS when refactoring chrome app dir code. |
+ }; |
+ |
virtual ~BrowserDistribution() {} |
static BrowserDistribution* GetDistribution(); |
@@ -53,10 +64,24 @@ class BrowserDistribution { |
// at run-time. |
virtual string16 GetBaseAppName(); |
- // Returns the localized name of the program. |
- virtual string16 GetAppShortCutName(); |
+ // Returns the localized display name of this distribution. |
+ virtual string16 GetDisplayName(); |
- virtual string16 GetAlternateApplicationName(); |
+ // Returns the localized name of the shortcut identified by |shortcut_type| |
+ // for this distribution. |
+ virtual string16 GetShortcutName(ShortcutType shortcut_type); |
+ |
+ // Returns the index of the icon for the product identified by |
+ // |shortcut_type|, inside the file specified by GetIconFilename(). |
+ virtual int GetIconIndex(ShortcutType shortcut_type); |
+ |
+ // Returns the executable filename (not path) that contains the product icon. |
+ virtual string16 GetIconFilename(); |
+ |
+ // Returns the localized name of the subfolder in the Start Menu identified by |
+ // |subfolder_type| that this distribution should create shortcuts in. For |
+ // SUBFOLDER_CHROME this returns GetShortcutName(SHORTCUT_CHROME). |
+ virtual string16 GetStartMenuShortcutSubfolder(Subfolder subfolder_type); |
// Returns the unsuffixed appid of this program. |
// The AppUserModelId is a property of Windows programs. |
@@ -96,13 +121,6 @@ class BrowserDistribution { |
virtual bool CanCreateDesktopShortcuts(); |
- // Returns the executable filename (not path) that contains the product icon. |
- virtual string16 GetIconFilename(); |
- |
- // Returns the index of the icon for the product, inside the file specified by |
- // GetIconFilename(). |
- virtual int GetIconIndex(); |
- |
virtual bool GetChromeChannel(string16* channel); |
// Returns true if this distribution includes a DelegateExecute verb handler, |