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

Unified Diff: third_party/WebKit/Source/platform/testing/EmptyWebMediaPlayer.cpp

Issue 2729613007: Fixing a crash in MediaCustomControlsFullscreenDetector when the page is destroyed (Closed)
Patch Set: rebased Created 3 years, 9 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/platform/testing/EmptyWebMediaPlayer.cpp
diff --git a/third_party/WebKit/Source/platform/testing/EmptyWebMediaPlayer.cpp b/third_party/WebKit/Source/platform/testing/EmptyWebMediaPlayer.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..272e2bbd3311cc7d31c3f2ad83aeb9123625c9da
--- /dev/null
+++ b/third_party/WebKit/Source/platform/testing/EmptyWebMediaPlayer.cpp
@@ -0,0 +1,24 @@
+// 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 "platform/testing/EmptyWebMediaPlayer.h"
+
+#include "public/platform/WebSize.h"
+#include "public/platform/WebTimeRange.h"
+
+namespace blink {
+
+WebTimeRanges EmptyWebMediaPlayer::buffered() const {
+ return WebTimeRanges();
+}
+
+WebTimeRanges EmptyWebMediaPlayer::seekable() const {
+ return WebTimeRanges();
+}
+
+WebSize EmptyWebMediaPlayer::naturalSize() const {
+ return WebSize(0, 0);
+}
+
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698