summaryrefslogtreecommitdiff
path: root/include/touch
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2013-04-18 18:26:28 +0200
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2013-04-23 22:20:31 +0200
commitb9337e22ce1dbf2eba0e8c8db294ae99f4111f91 (patch)
tree53ee1bd3dfd213815a21579151983cb997922b05 /include/touch
parentf4e1642a1761d5eab6ccdd89928869c2b2f1528a (diff)
execute move of global headers
see https://gerrit.libreoffice.org/#/c/3367/ and Change-Id: I00c96fa77d04b33a6f8c8cd3490dfcd9bdc9e84a for details Change-Id: I199a75bc4042af20817265d5ef85b1134a96ff5a
Diffstat (limited to 'include/touch')
-rw-r--r--include/touch/touch.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/include/touch/touch.h b/include/touch/touch.h
new file mode 100644
index 000000000000..8fa2dd16d26c
--- /dev/null
+++ b/include/touch/touch.h
@@ -0,0 +1,44 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * Copyright 2013 LibreOffice contributors.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#ifndef INCLUDED_TOUCH_TOUCH_H
+#define INCLUDED_TOUCH_TOUCH_H
+
+#include <config_features.h>
+
+#if !HAVE_FEATURE_DESKTOP
+
+// Functions to be implemented by the app-specifc upper or less
+// app-specific but platform-specific medium layer on touch-based
+// platforms. The same API is used on each such platform. There are
+// called from low level LibreOffice code. Note that these are just
+// declared here in this header in the "touch" module, the
+// per-platform implementations are elsewhere.
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void lo_show_keyboard();
+void lo_hide_keyboard();
+
+// Functions to be implemented in the medium platform-specific layer
+// to be called from the app-specific UI layer.
+
+void lo_keyboard_did_hide();
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // HAVE_FEATURE_DESKTOP
+
+#endif // INCLUDED_TOUCH_TOUCH_H
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */