Chromium Code Reviews| Index: content/renderer/renderer_webkitplatformsupport_impl.cc |
| diff --git a/content/renderer/renderer_webkitplatformsupport_impl.cc b/content/renderer/renderer_webkitplatformsupport_impl.cc |
| index 433cca128460c80fe3c84eeac8fa56c3714c8fa0..9310f0cbdd629bd016cdabe2bc6d38424d5e6a77 100644 |
| --- a/content/renderer/renderer_webkitplatformsupport_impl.cc |
| +++ b/content/renderer/renderer_webkitplatformsupport_impl.cc |
| @@ -1083,6 +1083,14 @@ void RendererWebKitPlatformSupportImpl::ResetMockScreenOrientationForTesting() |
| g_test_screen_orientation_controller.Get().ResetData(); |
| } |
| +// static |
| +void |
| +RendererWebKitPlatformSupportImpl::ResetMockScreenOrientationRenderView() { |
| + if (!(g_test_screen_orientation_controller == 0)) { |
|
Inactive
2014/05/28 12:02:20
nit: useless curly brackets (I don't know if this
ostap
2014/05/28 19:17:05
Done.
|
| + g_test_screen_orientation_controller.Get().ResetRenderView(); |
| + } |
| +} |
| + |
| //------------------------------------------------------------------------------ |
| void RendererWebKitPlatformSupportImpl::setDeviceOrientationListener( |
| @@ -1164,9 +1172,10 @@ void RendererWebKitPlatformSupportImpl::unlockOrientation() { |
| // static |
| void RendererWebKitPlatformSupportImpl::SetMockScreenOrientationForTesting( |
| + RenderView* render_view, |
| blink::WebScreenOrientationType orientation) { |
| g_test_screen_orientation_controller.Get() |
| - .UpdateDeviceOrientation(orientation); |
| + .UpdateDeviceOrientation(render_view, orientation); |
| } |
| //------------------------------------------------------------------------------ |