Index: Source/modules/screen_orientation/LockOrientationCallback.cpp |
diff --git a/Source/modules/screen_orientation/LockOrientationCallback.cpp b/Source/modules/screen_orientation/LockOrientationCallback.cpp |
index 1d6d58d953ba2cd251bd4bb34d4eaef003d29612..7eb294b183aa31a63129b00b99137a3e6ea135fe 100644 |
--- a/Source/modules/screen_orientation/LockOrientationCallback.cpp |
+++ b/Source/modules/screen_orientation/LockOrientationCallback.cpp |
@@ -21,9 +21,12 @@ |
{ |
} |
-void LockOrientationCallback::onSuccess() |
+void LockOrientationCallback::onSuccess(unsigned angle, blink::WebScreenOrientationType type) |
{ |
- m_resolver->resolve(); |
+ // FIXME: for the moment, we do nothing with the angle, we should use it and |
+ // convert it to the appropriate type if the type == 'undefined' when the |
+ // method will be implemented in ScreenOrientationController. |
+ m_resolver->resolve(ScreenOrientation::orientationTypeToString(type)); |
} |
void LockOrientationCallback::onError(blink::WebLockOrientationError error) |