| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Apple Inc. All rights reserved. | 2 * Copyright (C) 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 21 matching lines...) Expand all Loading... |
| 32 #include "modules/speech/SpeechSynthesisUtterance.h" | 32 #include "modules/speech/SpeechSynthesisUtterance.h" |
| 33 #include "modules/speech/SpeechSynthesisVoice.h" | 33 #include "modules/speech/SpeechSynthesisVoice.h" |
| 34 #include "platform/heap/Handle.h" | 34 #include "platform/heap/Handle.h" |
| 35 #include "platform/speech/PlatformSpeechSynthesisUtterance.h" | 35 #include "platform/speech/PlatformSpeechSynthesisUtterance.h" |
| 36 #include "platform/speech/PlatformSpeechSynthesizer.h" | 36 #include "platform/speech/PlatformSpeechSynthesizer.h" |
| 37 | 37 |
| 38 namespace blink { | 38 namespace blink { |
| 39 | 39 |
| 40 class PlatformSpeechSynthesizerClient; | 40 class PlatformSpeechSynthesizerClient; |
| 41 | 41 |
| 42 class MODULES_EXPORT SpeechSynthesis final : public RefCountedGarbageCollectedEv
entTargetWithInlineData<SpeechSynthesis>, public PlatformSpeechSynthesizerClient
, public ContextLifecycleObserver { | 42 class MODULES_EXPORT SpeechSynthesis final : public EventTargetWithInlineData, p
ublic PlatformSpeechSynthesizerClient, public ContextLifecycleObserver { |
| 43 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(SpeechSynthesis); | 43 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(SpeechSynthesis); |
| 44 DEFINE_WRAPPERTYPEINFO(); | 44 DEFINE_WRAPPERTYPEINFO(); |
| 45 USING_GARBAGE_COLLECTED_MIXIN(SpeechSynthesis); | 45 USING_GARBAGE_COLLECTED_MIXIN(SpeechSynthesis); |
| 46 public: | 46 public: |
| 47 static SpeechSynthesis* create(ExecutionContext*); | 47 static SpeechSynthesis* create(ExecutionContext*); |
| 48 | 48 |
| 49 bool pending() const; | 49 bool pending() const; |
| 50 bool speaking() const; | 50 bool speaking() const; |
| 51 bool paused() const; | 51 bool paused() const; |
| 52 | 52 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 HeapDeque<Member<SpeechSynthesisUtterance>> m_utteranceQueue; | 90 HeapDeque<Member<SpeechSynthesisUtterance>> m_utteranceQueue; |
| 91 bool m_isPaused; | 91 bool m_isPaused; |
| 92 | 92 |
| 93 // EventTarget | 93 // EventTarget |
| 94 const AtomicString& interfaceName() const override; | 94 const AtomicString& interfaceName() const override; |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 } // namespace blink | 97 } // namespace blink |
| 98 | 98 |
| 99 #endif // SpeechSynthesisEvent_h | 99 #endif // SpeechSynthesisEvent_h |
| OLD | NEW |