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

Side by Side Diff: third_party/WebKit/Source/modules/mediasession/MediaSession.h

Issue 2675943003: Remove custom left overs from object grouping (Closed)
Patch Set: Rebase (0 changes) Created 3 years, 10 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 MediaSession_h 5 #ifndef MediaSession_h
6 #define MediaSession_h 6 #define MediaSession_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "bindings/core/v8/TraceWrapperMember.h" 9 #include "bindings/core/v8/TraceWrapperMember.h"
10 #include "core/dom/ContextLifecycleObserver.h" 10 #include "core/dom/ContextLifecycleObserver.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 ActionDisabled, 59 ActionDisabled,
60 }; 60 };
61 61
62 explicit MediaSession(ExecutionContext*); 62 explicit MediaSession(ExecutionContext*);
63 63
64 void notifyActionChange(const String& action, ActionChangeType); 64 void notifyActionChange(const String& action, ActionChangeType);
65 65
66 // blink::mojom::blink::MediaSessionClient implementation. 66 // blink::mojom::blink::MediaSessionClient implementation.
67 void DidReceiveAction(blink::mojom::blink::MediaSessionAction) override; 67 void DidReceiveAction(blink::mojom::blink::MediaSessionAction) override;
68 68
69 void setV8ReferencesForHandlers(v8::Isolate*,
70 const v8::Persistent<v8::Object>& wrapper);
71
72 // Returns null when the ExecutionContext is not document. 69 // Returns null when the ExecutionContext is not document.
73 mojom::blink::MediaSessionService* getService(); 70 mojom::blink::MediaSessionService* getService();
74 71
75 mojom::blink::MediaSessionPlaybackState m_playbackState; 72 mojom::blink::MediaSessionPlaybackState m_playbackState;
76 Member<MediaMetadata> m_metadata; 73 Member<MediaMetadata> m_metadata;
77 HeapHashMap<String, TraceWrapperMember<MediaSessionActionHandler>> 74 HeapHashMap<String, TraceWrapperMember<MediaSessionActionHandler>>
78 m_actionHandlers; 75 m_actionHandlers;
79 mojom::blink::MediaSessionServicePtr m_service; 76 mojom::blink::MediaSessionServicePtr m_service;
80 mojo::Binding<blink::mojom::blink::MediaSessionClient> m_clientBinding; 77 mojo::Binding<blink::mojom::blink::MediaSessionClient> m_clientBinding;
81 }; 78 };
82 79
83 } // namespace blink 80 } // namespace blink
84 81
85 #endif // MediaSession_h 82 #endif // MediaSession_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698