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

Unified Diff: third_party/WebKit/Source/modules/remoteplayback/RemotePlaybackAvailability.h

Issue 2415723002: [Blink, RemotePlayback] watchAvailability() implementation. (Closed)
Patch Set: Added layout test for callback gc Created 4 years, 2 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/modules/remoteplayback/RemotePlaybackAvailability.h
diff --git a/third_party/WebKit/Source/modules/remoteplayback/RemotePlaybackAvailability.h b/third_party/WebKit/Source/modules/remoteplayback/RemotePlaybackAvailability.h
deleted file mode 100644
index 2a968acd6fdc5450ad1247630983f1723260f0c6..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/modules/remoteplayback/RemotePlaybackAvailability.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright 2016 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 RemotePlaybackAvailability_h
-#define RemotePlaybackAvailability_h
-
-#include "bindings/core/v8/ActiveScriptWrappable.h"
-#include "core/dom/ContextLifecycleObserver.h"
-#include "core/events/EventTarget.h"
-
-namespace blink {
-
-class ExecutionContext;
-class ScriptPromiseResolver;
-
-// Expose whether there is a remote playback device available for a media
-// element. The object will be initialized with a default value passed via
-// ::take() and will then listen to availability changes.
-class RemotePlaybackAvailability final : public EventTargetWithInlineData,
- public ActiveScriptWrappable,
- public ContextLifecycleObserver {
- DEFINE_WRAPPERTYPEINFO();
- USING_GARBAGE_COLLECTED_MIXIN(RemotePlaybackAvailability);
-
- public:
- static RemotePlaybackAvailability* take(ScriptPromiseResolver*, bool);
- ~RemotePlaybackAvailability() override;
-
- // EventTarget implementation.
- const AtomicString& interfaceName() const override;
- ExecutionContext* getExecutionContext() const override;
-
- void availabilityChanged(bool);
-
- bool value() const;
-
- // ScriptWrappable implementation.
- bool hasPendingActivity() const final;
-
- DEFINE_ATTRIBUTE_EVENT_LISTENER(change);
-
- DECLARE_VIRTUAL_TRACE();
-
- private:
- RemotePlaybackAvailability(ExecutionContext*, bool);
-
- bool m_value;
-};
-
-} // namespace blink
-
-#endif // RemotePlaybackAvailability_h

Powered by Google App Engine
This is Rietveld 408576698