| Index: base/win/shortcut.h
|
| ===================================================================
|
| --- base/win/shortcut.h (revision 232633)
|
| +++ base/win/shortcut.h (working copy)
|
| @@ -38,9 +38,11 @@
|
| PROPERTIES_ICON = 1 << 4,
|
| PROPERTIES_APP_ID = 1 << 5,
|
| PROPERTIES_DUAL_MODE = 1 << 6,
|
| + PROPERTIES_HOTKEY = 1 << 7,
|
| };
|
|
|
| - ShortcutProperties() : icon_index(-1), dual_mode(false), options(0U) {}
|
| + ShortcutProperties()
|
| + : icon_index(-1), dual_mode(false), hotkey(0), options(0U) {}
|
|
|
| void set_target(const FilePath& target_in) {
|
| target = target_in;
|
| @@ -82,6 +84,11 @@
|
| options |= PROPERTIES_DUAL_MODE;
|
| }
|
|
|
| + void set_hotkey(int hotkey_in) {
|
| + hotkey = hotkey_in;
|
| + options |= PROPERTIES_HOTKEY;
|
| + }
|
| +
|
| // The target to launch from this shortcut. This is mandatory when creating
|
| // a shortcut.
|
| FilePath target;
|
| @@ -101,6 +108,8 @@
|
| string16 app_id;
|
| // Whether this is a dual mode shortcut (Win8+).
|
| bool dual_mode;
|
| + // The shell launch hotkey.
|
| + int hotkey;
|
| // Bitfield made of IndividualProperties. Properties set in |options| will be
|
| // set on the shortcut, others will be ignored.
|
| uint32 options;
|
|
|