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) {
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) {