Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / xwalk / tizen / mobile / sensor / sensor_provider.cc
index 379ddb3..f24522d 100644 (file)
@@ -22,7 +22,7 @@ SensorProvider* SensorProvider::GetInstance() {
 }
 
 SensorProvider::SensorProvider()
-    : last_rotation_(gfx::Display::ROTATE_0) {
+    : last_orientation_(blink::WebScreenOrientationUndefined) {
 }
 
 SensorProvider::~SensorProvider() {
@@ -37,12 +37,13 @@ void SensorProvider::RemoveObserver(Observer* observer) {
   observers_.erase(observer);
 }
 
-void SensorProvider::OnRotationChanged(gfx::Display::Rotation rotation) {
-  last_rotation_ = rotation;
+void SensorProvider::OnScreenOrientationChanged(
+    blink::WebScreenOrientationType orientation) {
+  last_orientation_ = orientation;
 
   std::set<Observer*>::iterator it;
   for (it = observers_.begin(); it != observers_.end(); ++it)
-    (*it)->OnRotationChanged(rotation);
+    (*it)->OnScreenOrientationChanged(orientation);
 }
 
 void SensorProvider::OnOrientationChanged(float alpha,