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

Side by Side Diff: third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.h

Issue 1829923003: [Android,RemotePlayback] Resolve HTMLMediaElement.remote.connect() with false when device is not se… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remote-playback-connect
Patch Set: Rebased Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef RemotePlayback_h 5 #ifndef RemotePlayback_h
6 #define RemotePlayback_h 6 #define RemotePlayback_h
7 7
8 #include "bindings/core/v8/ScriptPromise.h" 8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "core/events/EventTarget.h" 9 #include "core/events/EventTarget.h"
10 #include "core/frame/DOMWindowProperty.h" 10 #include "core/frame/DOMWindowProperty.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 DEFINE_ATTRIBUTE_EVENT_LISTENER(statechange); 46 DEFINE_ATTRIBUTE_EVENT_LISTENER(statechange);
47 47
48 DECLARE_VIRTUAL_TRACE(); 48 DECLARE_VIRTUAL_TRACE();
49 49
50 private: 50 private:
51 explicit RemotePlayback(HTMLMediaElement&); 51 explicit RemotePlayback(HTMLMediaElement&);
52 52
53 void stateChanged(WebRemotePlaybackState) override; 53 void stateChanged(WebRemotePlaybackState) override;
54 void availabilityChanged(bool available) override; 54 void availabilityChanged(bool available) override;
55 void connectCancelled() override;
55 56
56 WebRemotePlaybackState m_state; 57 WebRemotePlaybackState m_state;
57 bool m_availability; 58 bool m_availability;
58 HeapVector<Member<RemotePlaybackAvailability>> m_availabilityObjects; 59 HeapVector<Member<RemotePlaybackAvailability>> m_availabilityObjects;
59 WeakPtrWillBeMember<HTMLMediaElement> m_mediaElement; 60 WeakPtrWillBeMember<HTMLMediaElement> m_mediaElement;
60 HeapVector<Member<ScriptPromiseResolver>> m_connectPromiseResolvers; 61 HeapVector<Member<ScriptPromiseResolver>> m_connectPromiseResolvers;
61 }; 62 };
62 63
63 } // namespace blink 64 } // namespace blink
64 65
65 #endif // RemotePlayback_h 66 #endif // RemotePlayback_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698