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

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

Issue 323663002: Revert of 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, 6 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 4d7f0eb4aef4fadd24bb626be7f3d599f0dea137..31420555fb247d24756883d2b6a915bf3bfe3080 100644
--- a/content/renderer/screen_orientation/mock_screen_orientation_controller.h
+++ b/content/renderer/screen_orientation/mock_screen_orientation_controller.h
@@ -8,7 +8,6 @@
#include "base/lazy_instance.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "content/public/renderer/render_view_observer.h"
#include "third_party/WebKit/public/platform/WebScreenOrientationLockType.h"
#include "third_party/WebKit/public/platform/WebScreenOrientationType.h"
@@ -17,12 +16,9 @@
}
namespace content {
-class RenderView;
-class RenderViewImpl;
class MockScreenOrientationController
- : public base::RefCountedThreadSafe<MockScreenOrientationController>,
- public RenderViewObserver {
+ : public base::RefCountedThreadSafe<MockScreenOrientationController> {
public:
MockScreenOrientationController();
@@ -30,9 +26,7 @@
void ResetData();
void UpdateLock(blink::WebScreenOrientationLockType);
void ResetLock();
- void UpdateDeviceOrientation(
- RenderView* render_view,
- blink::WebScreenOrientationType);
+ void UpdateDeviceOrientation(blink::WebScreenOrientationType);
private:
virtual ~MockScreenOrientationController();
@@ -42,10 +36,6 @@
void UpdateScreenOrientation(blink::WebScreenOrientationType);
bool IsOrientationAllowedByCurrentLock(blink::WebScreenOrientationType);
blink::WebScreenOrientationType SuitableOrientationForCurrentLock();
- RenderViewImpl* render_view_impl() const;
-
- // RenderViewObserver
- virtual void OnDestruct() OVERRIDE;
blink::WebScreenOrientationLockType current_lock_;
blink::WebScreenOrientationType device_orientation_;

Powered by Google App Engine
This is Rietveld 408576698