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

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

Issue 2347763002: [Blink, RemotePlayback] Reject the prompt() with OperationError if there's a pending promise for th… (Closed)
Patch Set: Added UserGesture flag for tests, removed some checks in HTMLMediaElement, added layout test Created 4 years, 3 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/ActiveScriptWrappable.h" 8 #include "bindings/core/v8/ActiveScriptWrappable.h"
9 #include "bindings/core/v8/ScriptPromise.h" 9 #include "bindings/core/v8/ScriptPromise.h"
10 #include "core/events/EventTarget.h" 10 #include "core/events/EventTarget.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 // WebRemotePlaybackClient implementation. 53 // WebRemotePlaybackClient implementation.
54 void stateChanged(WebRemotePlaybackState) override; 54 void stateChanged(WebRemotePlaybackState) override;
55 void availabilityChanged(bool available) override; 55 void availabilityChanged(bool available) override;
56 void promptCancelled() override; 56 void promptCancelled() override;
57 57
58 WebRemotePlaybackState m_state; 58 WebRemotePlaybackState m_state;
59 bool m_availability; 59 bool m_availability;
60 HeapVector<Member<RemotePlaybackAvailability>> m_availabilityObjects; 60 HeapVector<Member<RemotePlaybackAvailability>> m_availabilityObjects;
61 Member<HTMLMediaElement> m_mediaElement; 61 Member<HTMLMediaElement> m_mediaElement;
62 HeapVector<Member<ScriptPromiseResolver>> m_promptPromiseResolvers; 62 Member<ScriptPromiseResolver> m_promptPromiseResolver;
63 }; 63 };
64 64
65 } // namespace blink 65 } // namespace blink
66 66
67 #endif // RemotePlayback_h 67 #endif // RemotePlayback_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698