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

Unified Diff: third_party/WebKit/Source/core/html/shadow/MediaControlsWindowEventListener.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/MediaControlsWindowEventListener.cpp
diff --git a/third_party/WebKit/Source/core/html/shadow/MediaControlsWindowEventListener.cpp b/third_party/WebKit/Source/core/html/shadow/MediaControlsWindowEventListener.cpp
index 910c773a9f5d04904e4f5a918dc860a09c00eb19..f971c9f0841175adf5bb766edf00f3317c55b17f 100644
--- a/third_party/WebKit/Source/core/html/shadow/MediaControlsWindowEventListener.cpp
+++ b/third_party/WebKit/Source/core/html/shadow/MediaControlsWindowEventListener.cpp
@@ -6,7 +6,8 @@
#include "core/events/Event.h"
#include "core/frame/LocalDOMWindow.h"
-#include "core/html/shadow/MediaControls.h"
+#include "core/html/media/MediaControls.h"
+#include "core/html/shadow/MediaControlElements.h"
namespace blink {
@@ -49,7 +50,7 @@ void MediaControlsWindowEventListener::start() {
if (m_isActive)
return;
- if (LocalDOMWindow* window = m_mediaControls->document().domWindow()) {
+ if (LocalDOMWindow* window = m_mediaControls->ownerDocument().domWindow()) {
window->addEventListener(EventTypeNames::click, this, true);
if (LocalDOMWindow* outerWindow = getTopLocalDOMWindow(window)) {
@@ -75,7 +76,7 @@ void MediaControlsWindowEventListener::stop() {
if (!m_isActive)
return;
- if (LocalDOMWindow* window = m_mediaControls->document().domWindow()) {
+ if (LocalDOMWindow* window = m_mediaControls->ownerDocument().domWindow()) {
window->removeEventListener(EventTypeNames::click, this, true);
if (LocalDOMWindow* outerWindow = getTopLocalDOMWindow(window)) {

Powered by Google App Engine
This is Rietveld 408576698