OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights
reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
577 | 577 |
578 DECLARE_TRACE(); | 578 DECLARE_TRACE(); |
579 | 579 |
580 private: | 580 private: |
581 Member<AudioSourceProviderClient> m_client; | 581 Member<AudioSourceProviderClient> m_client; |
582 }; | 582 }; |
583 | 583 |
584 // AudioSourceProviderImpl wraps a WebAudioSourceProvider. | 584 // AudioSourceProviderImpl wraps a WebAudioSourceProvider. |
585 // provideInput() calls into Chromium to get a rendered audio stream. | 585 // provideInput() calls into Chromium to get a rendered audio stream. |
586 class AudioSourceProviderImpl final : public AudioSourceProvider { | 586 class AudioSourceProviderImpl final : public AudioSourceProvider { |
587 DISALLOW_ALLOCATION(); | 587 DISALLOW_NEW(); |
588 public: | 588 public: |
589 AudioSourceProviderImpl() | 589 AudioSourceProviderImpl() |
590 : m_webAudioSourceProvider(nullptr) | 590 : m_webAudioSourceProvider(nullptr) |
591 { | 591 { |
592 } | 592 } |
593 | 593 |
594 ~AudioSourceProviderImpl() override { } | 594 ~AudioSourceProviderImpl() override { } |
595 | 595 |
596 // Wraps the given WebAudioSourceProvider. | 596 // Wraps the given WebAudioSourceProvider. |
597 void wrap(WebAudioSourceProvider*); | 597 void wrap(WebAudioSourceProvider*); |
(...skipping 25 matching lines...) Expand all Loading... |
623 inline bool isHTMLMediaElement(const HTMLElement& element) | 623 inline bool isHTMLMediaElement(const HTMLElement& element) |
624 { | 624 { |
625 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 625 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
626 } | 626 } |
627 | 627 |
628 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 628 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
629 | 629 |
630 } // namespace blink | 630 } // namespace blink |
631 | 631 |
632 #endif // HTMLMediaElement_h | 632 #endif // HTMLMediaElement_h |
OLD | NEW |