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 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
654 | 654 |
655 Member<CueTimeline> cue_timeline_; | 655 Member<CueTimeline> cue_timeline_; |
656 | 656 |
657 HeapVector<Member<ScriptPromiseResolver>> play_promise_resolvers_; | 657 HeapVector<Member<ScriptPromiseResolver>> play_promise_resolvers_; |
658 TaskHandle play_promise_resolve_task_handle_; | 658 TaskHandle play_promise_resolve_task_handle_; |
659 TaskHandle play_promise_reject_task_handle_; | 659 TaskHandle play_promise_reject_task_handle_; |
660 HeapVector<Member<ScriptPromiseResolver>> play_promise_resolve_list_; | 660 HeapVector<Member<ScriptPromiseResolver>> play_promise_resolve_list_; |
661 HeapVector<Member<ScriptPromiseResolver>> play_promise_reject_list_; | 661 HeapVector<Member<ScriptPromiseResolver>> play_promise_reject_list_; |
662 ExceptionCode play_promise_error_code_; | 662 ExceptionCode play_promise_error_code_; |
663 | 663 |
664 // This is a weak reference, since m_audioSourceNode holds a reference to us. | 664 // This is a weak reference, since audio_source_node_ holds a reference to us. |
665 // TODO(Oilpan): Consider making this a strongly traced pointer with oilpan | 665 // TODO(Oilpan): Consider making this a strongly traced pointer with oilpan |
666 // where strong cycles are not a problem. | 666 // where strong cycles are not a problem. |
667 GC_PLUGIN_IGNORE("http://crbug.com/404577") | 667 GC_PLUGIN_IGNORE("http://crbug.com/404577") |
668 WeakMember<AudioSourceProviderClient> audio_source_node_; | 668 WeakMember<AudioSourceProviderClient> audio_source_node_; |
669 | 669 |
670 // AudioClientImpl wraps an AudioSourceProviderClient. | 670 // AudioClientImpl wraps an AudioSourceProviderClient. |
671 // When the audio format is known, Chromium calls setFormat(). | 671 // When the audio format is known, Chromium calls setFormat(). |
672 class AudioClientImpl final | 672 class AudioClientImpl final |
673 : public GarbageCollectedFinalized<AudioClientImpl>, | 673 : public GarbageCollectedFinalized<AudioClientImpl>, |
674 public WebAudioSourceProviderClient { | 674 public WebAudioSourceProviderClient { |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
739 | 739 |
740 inline bool IsHTMLMediaElement(const HTMLElement& element) { | 740 inline bool IsHTMLMediaElement(const HTMLElement& element) { |
741 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 741 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
742 } | 742 } |
743 | 743 |
744 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 744 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
745 | 745 |
746 } // namespace blink | 746 } // namespace blink |
747 | 747 |
748 #endif // HTMLMediaElement_h | 748 #endif // HTMLMediaElement_h |
OLD | NEW |