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

Unified Diff: third_party/WebKit/Source/core/html/MediaCustomControlsFullscreenDetector.h

Issue 2780403004: Create core/html/media/ and move auxiliary media files in it. (Closed)
Patch Set: actually add autoplay files 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/core/html/MediaCustomControlsFullscreenDetector.h
diff --git a/third_party/WebKit/Source/core/html/MediaCustomControlsFullscreenDetector.h b/third_party/WebKit/Source/core/html/MediaCustomControlsFullscreenDetector.h
deleted file mode 100644
index 4ef096f1d8291421e8a733321660d8275573956f..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/html/MediaCustomControlsFullscreenDetector.h
+++ /dev/null
@@ -1,59 +0,0 @@
-// 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.
-
-#ifndef MediaCustomControlsFullscreenDetector_h
-#define MediaCustomControlsFullscreenDetector_h
-
-#include "core/CoreExport.h"
-#include "core/events/EventListener.h"
-#include "platform/Timer.h"
-
-namespace blink {
-
-class HTMLVideoElement;
-class IntRect;
-class TimerBase;
-
-class CORE_EXPORT MediaCustomControlsFullscreenDetector final
- : public EventListener {
- WTF_MAKE_NONCOPYABLE(MediaCustomControlsFullscreenDetector);
-
- public:
- explicit MediaCustomControlsFullscreenDetector(HTMLVideoElement&);
-
- // EventListener implementation.
- bool operator==(const EventListener&) const override;
-
- void attach();
- void detach();
- void contextDestroyed();
-
- DECLARE_VIRTUAL_TRACE();
-
- private:
- friend class MediaCustomControlsFullscreenDetectorTest;
- friend class HTMLMediaElementEventListenersTest;
-
- // EventListener implementation.
- void handleEvent(ExecutionContext*, Event*) override;
-
- HTMLVideoElement& videoElement() { return *m_videoElement; }
-
- void onCheckViewportIntersectionTimerFired(TimerBase*);
-
- bool isVideoOrParentFullscreen();
-
- static bool computeIsDominantVideoForTests(const IntRect& targetRect,
- const IntRect& rootRect,
- const IntRect& intersectionRect);
-
- // `m_videoElement` owns |this|.
- Member<HTMLVideoElement> m_videoElement;
- TaskRunnerTimer<MediaCustomControlsFullscreenDetector>
- m_checkViewportIntersectionTimer;
-};
-
-} // namespace blink
-
-#endif // MediaCustomControlsFullscreenDetector_h

Powered by Google App Engine
This is Rietveld 408576698