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

Unified Diff: content/shell/renderer/test_runner/mock_screen_orientation_client.h

Issue 596623002: Fix orientation change callbacks to go through WebLocalFrame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/shell/renderer/test_runner/mock_screen_orientation_client.h
diff --git a/content/shell/renderer/test_runner/mock_screen_orientation_client.h b/content/shell/renderer/test_runner/mock_screen_orientation_client.h
index 147bb2be631cf8a1227417b4d80b72cb1bf0e728..99fb1119a7da3064148af7c902061c944585d120 100644
--- a/content/shell/renderer/test_runner/mock_screen_orientation_client.h
+++ b/content/shell/renderer/test_runner/mock_screen_orientation_client.h
@@ -12,7 +12,7 @@
#include "third_party/WebKit/public/platform/WebScreenOrientationType.h"
namespace blink {
-class WebFrame;
+class WebLocalFrame;
}
namespace content {
@@ -23,16 +23,16 @@ class MockScreenOrientationClient : public blink::WebScreenOrientationClient {
virtual ~MockScreenOrientationClient();
void ResetData();
- void UpdateDeviceOrientation(blink::WebFrame*,
- blink::WebScreenOrientationType);
+ void UpdateDeviceOrientation(blink::WebLocalFrame* main_frame,
+ blink::WebScreenOrientationType orientation);
blink::WebScreenOrientationType CurrentOrientationType() const;
unsigned CurrentOrientationAngle() const;
private:
// From blink::WebScreenOrientationClient.
- virtual void lockOrientation(blink::WebScreenOrientationLockType,
- blink::WebLockOrientationCallback*);
+ virtual void lockOrientation(blink::WebScreenOrientationLockType orientation,
+ blink::WebLockOrientationCallback* callback);
virtual void unlockOrientation();
void UpdateLockSync(blink::WebScreenOrientationLockType,
@@ -44,7 +44,7 @@ class MockScreenOrientationClient : public blink::WebScreenOrientationClient {
blink::WebScreenOrientationType SuitableOrientationForCurrentLock();
static unsigned OrientationTypeToAngle(blink::WebScreenOrientationType);
- blink::WebFrame* main_frame_;
+ blink::WebLocalFrame* main_frame_;
blink::WebScreenOrientationLockType current_lock_;
blink::WebScreenOrientationType device_orientation_;
blink::WebScreenOrientationType current_orientation_;

Powered by Google App Engine
This is Rietveld 408576698