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

Unified Diff: ash/sticky_keys/sticky_keys_controller.cc

Issue 164223002: Add missing x11 checks in StickyKeysHandler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/sticky_keys/sticky_keys_controller.cc
diff --git a/ash/sticky_keys/sticky_keys_controller.cc b/ash/sticky_keys/sticky_keys_controller.cc
index b65521284f0972de952c619214a8c4cb9612642c..fe380c43f293aa2bea70d81fa1fce143ed8bf869 100644
--- a/ash/sticky_keys/sticky_keys_controller.cc
+++ b/ash/sticky_keys/sticky_keys_controller.cc
@@ -416,6 +416,7 @@ void StickyKeysHandler::DispatchEventAndReleaseModifier(ui::Event* event) {
}
void StickyKeysHandler::AppendNativeEventMask(unsigned int* state) {
+#if defined(USE_X11)
unsigned int& state_ref = *state;
switch (modifier_flag_) {
case ui::EF_CONTROL_DOWN:
@@ -430,6 +431,7 @@ void StickyKeysHandler::AppendNativeEventMask(unsigned int* state) {
default:
NOTREACHED();
}
+#endif
}
void StickyKeysHandler::AppendModifier(ui::KeyEvent* event) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698