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 26 matching lines...) Expand all Loading... |
37 #include "wtf/Deque.h" | 37 #include "wtf/Deque.h" |
38 #include "wtf/PassRefPtr.h" | 38 #include "wtf/PassRefPtr.h" |
39 #include "wtf/RefCounted.h" | 39 #include "wtf/RefCounted.h" |
40 #include "wtf/RefPtr.h" | 40 #include "wtf/RefPtr.h" |
41 | 41 |
42 namespace WebCore { | 42 namespace WebCore { |
43 | 43 |
44 class ExceptionState; | 44 class ExceptionState; |
45 class PlatformSpeechSynthesizerClient; | 45 class PlatformSpeechSynthesizerClient; |
46 | 46 |
47 class SpeechSynthesis FINAL : public RefCountedWillBeRefCountedGarbageCollected<
SpeechSynthesis>, public PlatformSpeechSynthesizerClient, public ScriptWrappable
, public ContextLifecycleObserver, public EventTargetWithInlineData { | 47 class SpeechSynthesis FINAL : public RefCountedWillBeGarbageCollectedFinalized<S
peechSynthesis>, public PlatformSpeechSynthesizerClient, public ScriptWrappable,
public ContextLifecycleObserver, public EventTargetWithInlineData { |
48 REFCOUNTED_EVENT_TARGET(SpeechSynthesis); | 48 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCounted<SpeechSynthesis>)
; |
49 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SpeechSynthesis); | 49 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SpeechSynthesis); |
50 public: | 50 public: |
51 static PassRefPtrWillBeRawPtr<SpeechSynthesis> create(ExecutionContext*); | 51 static PassRefPtrWillBeRawPtr<SpeechSynthesis> create(ExecutionContext*); |
52 | 52 |
53 bool pending() const; | 53 bool pending() const; |
54 bool speaking() const; | 54 bool speaking() const; |
55 bool paused() const; | 55 bool paused() const; |
56 | 56 |
57 void speak(SpeechSynthesisUtterance*, ExceptionState&); | 57 void speak(SpeechSynthesisUtterance*, ExceptionState&); |
58 void cancel(); | 58 void cancel(); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 Deque<RefPtrWillBeMember<SpeechSynthesisUtterance> > m_utteranceQueue; | 94 Deque<RefPtrWillBeMember<SpeechSynthesisUtterance> > m_utteranceQueue; |
95 bool m_isPaused; | 95 bool m_isPaused; |
96 | 96 |
97 // EventTarget | 97 // EventTarget |
98 virtual const AtomicString& interfaceName() const OVERRIDE; | 98 virtual const AtomicString& interfaceName() const OVERRIDE; |
99 }; | 99 }; |
100 | 100 |
101 } // namespace WebCore | 101 } // namespace WebCore |
102 | 102 |
103 #endif // SpeechSynthesisEvent_h | 103 #endif // SpeechSynthesisEvent_h |
OLD | NEW |