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

Unified Diff: third_party/WebKit/Source/core/html/shadow/MediaControlsOrientationLockDelegateTest.cpp

Issue 2793273002: Use internal hooks for notifying fullscreen changes to media controls (Closed)
Patch Set: update more tests Created 3 years, 8 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
« no previous file with comments | « third_party/WebKit/Source/core/html/shadow/MediaControlsOrientationLockDelegate.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/shadow/MediaControlsOrientationLockDelegateTest.cpp
diff --git a/third_party/WebKit/Source/core/html/shadow/MediaControlsOrientationLockDelegateTest.cpp b/third_party/WebKit/Source/core/html/shadow/MediaControlsOrientationLockDelegateTest.cpp
index 2acd74091dbe21efb507d1f6d0448df2bc5ce418..2358c1da8085a30627ed63c952c682285f7a2867 100644
--- a/third_party/WebKit/Source/core/html/shadow/MediaControlsOrientationLockDelegateTest.cpp
+++ b/third_party/WebKit/Source/core/html/shadow/MediaControlsOrientationLockDelegateTest.cpp
@@ -45,6 +45,14 @@ class MockVideoWebMediaPlayer : public EmptyWebMediaPlayer {
class MockChromeClient : public EmptyChromeClient {
public:
+ void fullscreenElementChanged(Element* fromElement,
+ Element* toElement) override {
+ if (isHTMLVideoElement(toElement))
+ toHTMLVideoElement(toElement)->didEnterFullscreen();
+ if (isHTMLVideoElement(fromElement))
+ toHTMLVideoElement(fromElement)->didExitFullscreen();
+ }
+
MOCK_CONST_METHOD0(screenInfo, WebScreenInfo());
};
« no previous file with comments | « third_party/WebKit/Source/core/html/shadow/MediaControlsOrientationLockDelegate.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698