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

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

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: 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 #include "modules/mediasession/MediaSession.h" 5 #include "modules/mediasession/MediaSession.h"
6 6
7 #include <memory>
7 #include "bindings/modules/v8/MediaSessionActionHandler.h" 8 #include "bindings/modules/v8/MediaSessionActionHandler.h"
8 #include "core/dom/Document.h" 9 #include "core/dom/Document.h"
9 #include "core/dom/DocumentUserGestureToken.h" 10 #include "core/dom/DocumentUserGestureToken.h"
10 #include "core/dom/ExecutionContext.h" 11 #include "core/dom/ExecutionContext.h"
11 #include "core/frame/LocalFrame.h" 12 #include "core/frame/LocalFrame.h"
12 #include "modules/mediasession/MediaMetadata.h" 13 #include "modules/mediasession/MediaMetadata.h"
13 #include "modules/mediasession/MediaMetadataSanitizer.h" 14 #include "modules/mediasession/MediaMetadataSanitizer.h"
14 #include "platform/UserGestureIndicator.h" 15 #include "platform/UserGestureIndicator.h"
15 #include "public/platform/InterfaceProvider.h" 16 #include "public/platform/InterfaceProvider.h"
16 #include "public/platform/Platform.h" 17 #include "public/platform/Platform.h"
17 #include "wtf/Optional.h" 18 #include "wtf/Optional.h"
18 #include <memory>
19 19
20 namespace blink { 20 namespace blink {
21 21
22 namespace { 22 namespace {
23 23
24 using ::blink::mojom::blink::MediaSessionAction; 24 using ::blink::mojom::blink::MediaSessionAction;
25 25
26 const AtomicString& mojomActionToActionName(MediaSessionAction action) { 26 const AtomicString& mojomActionToActionName(MediaSessionAction action) {
27 DEFINE_STATIC_LOCAL(const AtomicString, playActionName, ("play")); 27 DEFINE_STATIC_LOCAL(const AtomicString, playActionName, ("play"));
28 DEFINE_STATIC_LOCAL(const AtomicString, pauseActionName, ("pause")); 28 DEFINE_STATIC_LOCAL(const AtomicString, pauseActionName, ("pause"));
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 visitor->trace(m_actionHandlers); 235 visitor->trace(m_actionHandlers);
236 ContextClient::trace(visitor); 236 ContextClient::trace(visitor);
237 } 237 }
238 238
239 DEFINE_TRACE_WRAPPERS(MediaSession) { 239 DEFINE_TRACE_WRAPPERS(MediaSession) {
240 for (auto handler : m_actionHandlers.values()) 240 for (auto handler : m_actionHandlers.values())
241 visitor->traceWrappers(handler); 241 visitor->traceWrappers(handler);
242 } 242 }
243 243
244 } // namespace blink 244 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698