Upstream version 7.36.152.0
[platform/framework/web/crosswalk.git] / src / xwalk / runtime / browser / ui / native_app_window_tizen.cc
index 7ceee28..991faf3 100644 (file)
@@ -119,6 +119,13 @@ NativeAppWindowTizen::~NativeAppWindowTizen() {
     SensorProvider::GetInstance()->RemoveObserver(this);
 }
 
+void NativeAppWindowTizen::LockOrientation(
+      blink::WebScreenOrientationLockType lock) {
+  orientation_lock_ = lock;
+  if (SensorProvider* sensor = SensorProvider::GetInstance())
+    OnScreenOrientationChanged(sensor->GetScreenOrientation());
+}
+
 void NativeAppWindowTizen::ViewHierarchyChanged(
     const ViewHierarchyChangedDetails& details) {
   if (details.is_add && details.child == this) {
@@ -200,17 +207,6 @@ blink::WebScreenOrientationType
   return orientation;
 }
 
-void NativeAppWindowTizen::LockOrientation(
-      blink::WebScreenOrientationLockType lock) {
-  orientation_lock_ = lock;
-  if (SensorProvider* sensor = SensorProvider::GetInstance())
-    OnScreenOrientationChanged(sensor->GetScreenOrientation());
-}
-
-void NativeAppWindowTizen::UnlockOrientation() {
-  LockOrientation(blink::WebScreenOrientationLockDefault);
-}
-
 void NativeAppWindowTizen::OnScreenOrientationChanged(
     blink::WebScreenOrientationType orientation) {