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 27 matching lines...) Expand all Loading... |
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 RefCountedWillBeRefCountedGarbageCollected<
SpeechSynthesis>, public PlatformSpeechSynthesizerClient, public ScriptWrappable
, public ContextLifecycleObserver, public EventTargetWithInlineData { |
48 DECLARE_GC_INFO; | |
49 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWillBeRefCountedGarbageCollected<S
peechSynthesis>); | 48 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWillBeRefCountedGarbageCollected<S
peechSynthesis>); |
50 public: | 49 public: |
51 static PassRefPtrWillBeRawPtr<SpeechSynthesis> create(ExecutionContext*); | 50 static PassRefPtrWillBeRawPtr<SpeechSynthesis> create(ExecutionContext*); |
52 | 51 |
53 bool pending() const; | 52 bool pending() const; |
54 bool speaking() const; | 53 bool speaking() const; |
55 bool paused() const; | 54 bool paused() const; |
56 | 55 |
57 void speak(SpeechSynthesisUtterance*, ExceptionState&); | 56 void speak(SpeechSynthesisUtterance*, ExceptionState&); |
58 void cancel(); | 57 void cancel(); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 Deque<RefPtrWillBeMember<SpeechSynthesisUtterance> > m_utteranceQueue; | 91 Deque<RefPtrWillBeMember<SpeechSynthesisUtterance> > m_utteranceQueue; |
93 bool m_isPaused; | 92 bool m_isPaused; |
94 | 93 |
95 // EventTarget | 94 // EventTarget |
96 virtual const AtomicString& interfaceName() const OVERRIDE; | 95 virtual const AtomicString& interfaceName() const OVERRIDE; |
97 }; | 96 }; |
98 | 97 |
99 } // namespace WebCore | 98 } // namespace WebCore |
100 | 99 |
101 #endif // SpeechSynthesisEvent_h | 100 #endif // SpeechSynthesisEvent_h |
OLD | NEW |