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

Unified Diff: ui/events/ozone/evdev/gestures/gesture_property_provider.cc

Issue 193813003: ozone: evdev: Add libgestures bindings for touchpad & mouse support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
Index: ui/events/ozone/evdev/gestures/gesture_property_provider.cc
diff --git a/ui/events/ozone/evdev/gestures/gesture_property_provider.cc b/ui/events/ozone/evdev/gestures/gesture_property_provider.cc
new file mode 100644
index 0000000000000000000000000000000000000000..ff3e14a3dfb4cf889968751c4533dc8e744c8ac2
--- /dev/null
+++ b/ui/events/ozone/evdev/gestures/gesture_property_provider.cc
@@ -0,0 +1,75 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ui/events/ozone/evdev/gestures/gesture_property_provider.h"
+
+#include <gestures/gestures.h>
+
+#include "base/logging.h"
+
+namespace ui {
+
+namespace {
+
+void Prop_Free(void* priv, GesturesProp* prop) { NOTIMPLEMENTED(); }
+
+GesturesProp* PropCreate_Int(void* priv,
+ const char* name,
+ int* val,
+ size_t count,
+ const int* init) {
+ NOTIMPLEMENTED();
+ return NULL;
+}
+
+GesturesProp* PropCreate_Short(void* priv,
+ const char* name,
+ short* val,
+ size_t count,
+ const short* init) {
+ NOTIMPLEMENTED();
+ return NULL;
+}
+
+GesturesProp* PropCreate_Bool(void* priv,
+ const char* name,
+ GesturesPropBool* val,
+ size_t count,
+ const GesturesPropBool* init) {
+ NOTIMPLEMENTED();
+ return NULL;
+}
+
+GesturesProp* PropCreate_String(void* priv,
+ const char* name,
+ const char** val,
+ const char* init) {
+ NOTIMPLEMENTED();
+ return NULL;
+}
+
+GesturesProp* PropCreate_Real(void* priv,
+ const char* name,
+ double* val,
+ size_t count,
+ const double* init) {
+ NOTIMPLEMENTED();
+ return NULL;
+}
+
+void Prop_RegisterHandlers(void* priv,
+ GesturesProp* prop,
+ void* handler_data,
+ GesturesPropGetHandler get,
+ GesturesPropSetHandler set) {
+ NOTIMPLEMENTED();
+}
+
+} // namespace
+
+const GesturesPropProvider kGesturePropertyProvider = {
+ PropCreate_Int, PropCreate_Short, PropCreate_Bool, PropCreate_String,
+ PropCreate_Real, Prop_RegisterHandlers, Prop_Free};
+
+} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698