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

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

Issue 2795783004: Move core MediaControls implementation to modules/media_controls/. (Closed)
Patch Set: rebase 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
Index: third_party/WebKit/Source/core/html/shadow/MediaControlsMediaEventListener.cpp
diff --git a/third_party/WebKit/Source/core/html/shadow/MediaControlsMediaEventListener.cpp b/third_party/WebKit/Source/core/html/shadow/MediaControlsMediaEventListener.cpp
index 070f17b32971c62841984ede8a0b15d1d8086e8d..19a7ecec16d7ee6f7bd9d6c74393d4e69127a33b 100644
--- a/third_party/WebKit/Source/core/html/shadow/MediaControlsMediaEventListener.cpp
+++ b/third_party/WebKit/Source/core/html/shadow/MediaControlsMediaEventListener.cpp
@@ -6,7 +6,7 @@
#include "core/events/Event.h"
#include "core/html/HTMLMediaElement.h"
-#include "core/html/shadow/MediaControls.h"
+#include "core/html/media/MediaControls.h"
#include "core/html/track/TextTrackList.h"
namespace blink {
@@ -34,8 +34,8 @@ void MediaControlsMediaEventListener::attach() {
// old APIs are handled.
mediaElement().addEventListener(EventTypeNames::webkitfullscreenchange, this,
false);
- m_mediaControls->document().addEventListener(EventTypeNames::fullscreenchange,
- this, false);
+ m_mediaControls->ownerDocument().addEventListener(
+ EventTypeNames::fullscreenchange, this, false);
// TextTracks events.
TextTrackList* textTracks = mediaElement().textTracks();
@@ -47,7 +47,7 @@ void MediaControlsMediaEventListener::attach() {
void MediaControlsMediaEventListener::detach() {
DCHECK(!mediaElement().isConnected());
- m_mediaControls->document().removeEventListener(
+ m_mediaControls->ownerDocument().removeEventListener(
EventTypeNames::fullscreenchange, this, false);
TextTrackList* textTracks = mediaElement().textTracks();

Powered by Google App Engine
This is Rietveld 408576698