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

Unified Diff: third_party/WebKit/Source/core/html/media/MediaControls.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/media/MediaControls.cpp
diff --git a/third_party/WebKit/Source/core/html/media/MediaControls.cpp b/third_party/WebKit/Source/core/html/media/MediaControls.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..163d1b7ee118b1b92fd88e48bfec13dcd03c9383
--- /dev/null
+++ b/third_party/WebKit/Source/core/html/media/MediaControls.cpp
@@ -0,0 +1,22 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "core/html/media/MediaControls.h"
+
+#include "core/html/HTMLMediaElement.h"
+
+namespace blink {
+
+MediaControls::MediaControls(HTMLMediaElement& mediaElement)
+ : m_mediaElement(&mediaElement) {}
+
+HTMLMediaElement& MediaControls::mediaElement() const {
+ return *m_mediaElement;
+}
+
+DEFINE_TRACE(MediaControls) {
+ visitor->trace(m_mediaElement);
+}
+
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698