Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2057)

Unified Diff: content/renderer/screen_orientation/mock_screen_orientation_controller.h

Issue 302553007: Call RenderViewImpl::SetScreenOrientationForTesting to make sure that events are not sent when orie… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/screen_orientation/mock_screen_orientation_controller.h
diff --git a/content/renderer/screen_orientation/mock_screen_orientation_controller.h b/content/renderer/screen_orientation/mock_screen_orientation_controller.h
index 330195c94be0fc358fdb93085e17277089f204f4..1a0e755239926a290d18ff09e35d707f41661c28 100644
--- a/content/renderer/screen_orientation/mock_screen_orientation_controller.h
+++ b/content/renderer/screen_orientation/mock_screen_orientation_controller.h
@@ -14,6 +14,7 @@ class WebScreenOrientationListener;
}
namespace content {
+class RenderView;
class MockScreenOrientationController {
public:
@@ -23,7 +24,10 @@ class MockScreenOrientationController {
void ResetData();
void UpdateLock(blink::WebScreenOrientationLockType);
void ResetLock();
- void UpdateDeviceOrientation(blink::WebScreenOrientationType);
+ void UpdateDeviceOrientation(
+ RenderView* render_view,
+ blink::WebScreenOrientationType);
+ void ResetRenderView();
private:
void UpdateScreenOrientation(blink::WebScreenOrientationType);
@@ -34,6 +38,7 @@ class MockScreenOrientationController {
blink::WebScreenOrientationType device_orientation_;
blink::WebScreenOrientationType current_orientation_;
blink::WebScreenOrientationListener* listener_;
+ RenderView* render_view_;
DISALLOW_COPY_AND_ASSIGN(MockScreenOrientationController);
};

Powered by Google App Engine
This is Rietveld 408576698