summaryrefslogtreecommitdiff
path: root/include/gesture.h
diff options
context:
space:
mode:
authorAlec Berg <alecaberg@chromium.org>2014-09-29 11:45:01 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-10-18 07:38:26 +0000
commit316f369f1cc859880485cab7dd760fa19b48e70d (patch)
treec35775e93a2cf61fac9b0f2a3490812807d145c9 /include/gesture.h
parent5d4846ee520b6f1e743a6e58537a2ab2fac0cafc (diff)
downloadchrome-ec-316f369f1cc859880485cab7dd760fa19b48e70d.tar.gz
samus: add tap for battery
Adds double tap detection for samus. When user double taps in S3 or lower to show battery state of charge on lightbar. BUG=chrome-os-partner:29041 BRANCH=samus TEST=make buildall Tap the lid in S3 or lower. Change-Id: Ic5f4709bdee2472cb7e91717318337b04bae1fc8 Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/221965 Reviewed-by: David Schneider <dnschneid@chromium.org>
Diffstat (limited to 'include/gesture.h')
-rw-r--r--include/gesture.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/gesture.h b/include/gesture.h
new file mode 100644
index 0000000000..d1b547d9cc
--- /dev/null
+++ b/include/gesture.h
@@ -0,0 +1,31 @@
+/* Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+/* Header for gesture.c */
+
+#ifndef __CROS_EC_GESTURE_H
+#define __CROS_EC_GESTURE_H
+
+/**
+ * Run gesture detection engine.
+ */
+void gesture_calc(void);
+
+/**
+ * Gesture hook to call on chipset resume.
+ */
+void gesture_chipset_resume(void);
+
+/**
+ * Gesture hook to call on chipset suspend.
+ */
+void gesture_chipset_suspend(void);
+
+/**
+ * Gesture hook to call on chipset shutdown.
+ */
+void gesture_chipset_shutdown(void);
+
+#endif /* __CROS_EC_GESTURE_H */