| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/presentation/PresentationAvailability.h" | 5 #include "modules/presentation/PresentationAvailability.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/ScriptPromiseResolver.h" | 7 #include "bindings/core/v8/ScriptPromiseResolver.h" |
| 8 #include "core/dom/Document.h" | 8 #include "core/dom/Document.h" |
| 9 #include "core/events/Event.h" | 9 #include "core/events/Event.h" |
| 10 #include "core/frame/UseCounter.h" | 10 #include "core/frame/UseCounter.h" |
| 11 #include "modules/EventTargetModulesNames.h" | 11 #include "modules/EventTargetModulesNames.h" |
| 12 #include "modules/presentation/PresentationController.h" | 12 #include "modules/presentation/PresentationController.h" |
| 13 #include "platform/wtf/Vector.h" |
| 13 #include "public/platform/Platform.h" | 14 #include "public/platform/Platform.h" |
| 14 #include "public/platform/modules/presentation/WebPresentationClient.h" | 15 #include "public/platform/modules/presentation/WebPresentationClient.h" |
| 15 #include "wtf/Vector.h" | |
| 16 | 16 |
| 17 namespace blink { | 17 namespace blink { |
| 18 | 18 |
| 19 namespace { | 19 namespace { |
| 20 | 20 |
| 21 WebPresentationClient* PresentationClient(ExecutionContext* execution_context) { | 21 WebPresentationClient* PresentationClient(ExecutionContext* execution_context) { |
| 22 if (!execution_context) | 22 if (!execution_context) |
| 23 return nullptr; | 23 return nullptr; |
| 24 DCHECK(execution_context->IsDocument()); | 24 DCHECK(execution_context->IsDocument()); |
| 25 Document* document = ToDocument(execution_context); | 25 Document* document = ToDocument(execution_context); |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 return value_; | 138 return value_; |
| 139 } | 139 } |
| 140 | 140 |
| 141 DEFINE_TRACE(PresentationAvailability) { | 141 DEFINE_TRACE(PresentationAvailability) { |
| 142 EventTargetWithInlineData::Trace(visitor); | 142 EventTargetWithInlineData::Trace(visitor); |
| 143 PageVisibilityObserver::Trace(visitor); | 143 PageVisibilityObserver::Trace(visitor); |
| 144 SuspendableObject::Trace(visitor); | 144 SuspendableObject::Trace(visitor); |
| 145 } | 145 } |
| 146 | 146 |
| 147 } // namespace blink | 147 } // namespace blink |
| OLD | NEW |