Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3905)

Unified Diff: base/win/shortcut.h

Issue 57173002: Adds the concept of a 'safe mode' hotkey start (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/win/shortcut.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | base/win/shortcut.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698