OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights | 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights |
3 * reserved. | 3 * reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 10 matching lines...) Expand all Loading... |
21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | 21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
25 */ | 25 */ |
26 | 26 |
27 #include "core/html/HTMLMediaElement.h" | 27 #include "core/html/HTMLMediaElement.h" |
28 | 28 |
29 #include <limits> | 29 #include <limits> |
30 #include "bindings/core/v8/ExceptionState.h" | 30 #include "bindings/core/v8/ExceptionState.h" |
31 #include "bindings/core/v8/Microtask.h" | |
32 #include "bindings/core/v8/ScriptController.h" | 31 #include "bindings/core/v8/ScriptController.h" |
33 #include "bindings/core/v8/ScriptEventListener.h" | 32 #include "bindings/core/v8/ScriptEventListener.h" |
34 #include "bindings/core/v8/ScriptPromiseResolver.h" | 33 #include "bindings/core/v8/ScriptPromiseResolver.h" |
35 #include "core/HTMLNames.h" | 34 #include "core/HTMLNames.h" |
36 #include "core/css/MediaList.h" | 35 #include "core/css/MediaList.h" |
37 #include "core/dom/Attribute.h" | 36 #include "core/dom/Attribute.h" |
38 #include "core/dom/DOMException.h" | 37 #include "core/dom/DOMException.h" |
39 #include "core/dom/ElementTraversal.h" | 38 #include "core/dom/ElementTraversal.h" |
40 #include "core/dom/Fullscreen.h" | 39 #include "core/dom/Fullscreen.h" |
41 #include "core/dom/TaskRunnerHelper.h" | 40 #include "core/dom/TaskRunnerHelper.h" |
(...skipping 28 matching lines...) Expand all Loading... |
70 #include "core/layout/LayoutMedia.h" | 69 #include "core/layout/LayoutMedia.h" |
71 #include "core/layout/api/LayoutViewItem.h" | 70 #include "core/layout/api/LayoutViewItem.h" |
72 #include "core/layout/compositing/PaintLayerCompositor.h" | 71 #include "core/layout/compositing/PaintLayerCompositor.h" |
73 #include "core/loader/FrameLoader.h" | 72 #include "core/loader/FrameLoader.h" |
74 #include "core/page/ChromeClient.h" | 73 #include "core/page/ChromeClient.h" |
75 #include "platform/Histogram.h" | 74 #include "platform/Histogram.h" |
76 #include "platform/LayoutTestSupport.h" | 75 #include "platform/LayoutTestSupport.h" |
77 #include "platform/RuntimeEnabledFeatures.h" | 76 #include "platform/RuntimeEnabledFeatures.h" |
78 #include "platform/audio/AudioBus.h" | 77 #include "platform/audio/AudioBus.h" |
79 #include "platform/audio/AudioSourceProviderClient.h" | 78 #include "platform/audio/AudioSourceProviderClient.h" |
| 79 #include "platform/bindings/Microtask.h" |
80 #include "platform/graphics/GraphicsLayer.h" | 80 #include "platform/graphics/GraphicsLayer.h" |
81 #include "platform/mediastream/MediaStreamDescriptor.h" | 81 #include "platform/mediastream/MediaStreamDescriptor.h" |
82 #include "platform/network/NetworkStateNotifier.h" | 82 #include "platform/network/NetworkStateNotifier.h" |
83 #include "platform/network/ParsedContentType.h" | 83 #include "platform/network/ParsedContentType.h" |
84 #include "platform/network/mime/ContentType.h" | 84 #include "platform/network/mime/ContentType.h" |
85 #include "platform/network/mime/MIMETypeFromURL.h" | 85 #include "platform/network/mime/MIMETypeFromURL.h" |
86 #include "platform/weborigin/SecurityOrigin.h" | 86 #include "platform/weborigin/SecurityOrigin.h" |
87 #include "platform/wtf/AutoReset.h" | 87 #include "platform/wtf/AutoReset.h" |
88 #include "platform/wtf/CurrentTime.h" | 88 #include "platform/wtf/CurrentTime.h" |
89 #include "platform/wtf/MathExtras.h" | 89 #include "platform/wtf/MathExtras.h" |
(...skipping 4026 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4116 kMostlyFillViewportBecomeStableSeconds, BLINK_FROM_HERE); | 4116 kMostlyFillViewportBecomeStableSeconds, BLINK_FROM_HERE); |
4117 } | 4117 } |
4118 | 4118 |
4119 void HTMLMediaElement::ViewportFillDebouncerTimerFired(TimerBase*) { | 4119 void HTMLMediaElement::ViewportFillDebouncerTimerFired(TimerBase*) { |
4120 mostly_filling_viewport_ = true; | 4120 mostly_filling_viewport_ = true; |
4121 if (web_media_player_) | 4121 if (web_media_player_) |
4122 web_media_player_->BecameDominantVisibleContent(mostly_filling_viewport_); | 4122 web_media_player_->BecameDominantVisibleContent(mostly_filling_viewport_); |
4123 } | 4123 } |
4124 | 4124 |
4125 } // namespace blink | 4125 } // namespace blink |
OLD | NEW |