Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / xwalk / tizen / mobile / sensor / tizen_platform_sensor.h
index deac090..7fe7781 100644 (file)
@@ -20,6 +20,7 @@
 #include <vconf.h>
 
 #include "base/native_library.h"
+#include "base/threading/thread.h"
 #include "xwalk/tizen/mobile/sensor/sensor_provider.h"
 
 namespace xwalk {
@@ -33,17 +34,18 @@ class TizenPlatformSensor : public SensorProvider {
   virtual void Finish() OVERRIDE;
 
  private:
-  gfx::Display::Rotation ToDisplayRotation(int rotation) const;
-
   bool auto_rotation_enabled_;
   int accel_handle_;
   int gyro_handle_;
 
   static void OnEventReceived(unsigned int event_type,
-                              sensor_event_data_t* event_data,
-                              void* udata);
+      sensor_event_data_t* event_data, void* udata);
   static void OnAutoRotationEnabledChanged(keynode_t* node, void* udata);
 
+  void ConnectSensor();
+
+  scoped_ptr<base::Thread> sensor_thread_;
+
   DISALLOW_COPY_AND_ASSIGN(TizenPlatformSensor);
 };