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

Unified Diff: ui/base/accelerators/accelerator.cc

Issue 2783613003: Add window cycle completion and cancellation accelerators in mus+ash. (Closed)
Patch Set: rename constants. Created 3 years, 9 months 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 | « ui/base/accelerators/accelerator.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/accelerators/accelerator.cc
diff --git a/ui/base/accelerators/accelerator.cc b/ui/base/accelerators/accelerator.cc
index c97254441cece2c0f56237d516882bd6e629fb27..8b8d14e1a5fbee1cef1c0cbd95b1d9f6ac8cecbb 100644
--- a/ui/base/accelerators/accelerator.cc
+++ b/ui/base/accelerators/accelerator.cc
@@ -37,9 +37,11 @@ const int kInterestingFlagsMask =
Accelerator::Accelerator() : Accelerator(VKEY_UNKNOWN, EF_NONE) {}
-Accelerator::Accelerator(KeyboardCode key_code, int modifiers)
+Accelerator::Accelerator(KeyboardCode key_code,
+ int modifiers,
+ KeyState key_state)
: key_code_(key_code),
- key_state_(KeyState::PRESSED),
+ key_state_(key_state),
modifiers_(modifiers & kInterestingFlagsMask) {}
Accelerator::Accelerator(const KeyEvent& key_event)
« no previous file with comments | « ui/base/accelerators/accelerator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698