Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(410)

Side by Side Diff: Source/modules/speech/SpeechSynthesis.h

Issue 329853004: Remove RefCountedGarbageCollected from EventTarget objects (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 23 matching lines...) Expand all
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 #include "wtf/PassRefPtr.h" 37 #include "wtf/PassRefPtr.h"
38 38
39 namespace WebCore { 39 namespace WebCore {
40 40
41 class ExceptionState; 41 class ExceptionState;
42 class PlatformSpeechSynthesizerClient; 42 class PlatformSpeechSynthesizerClient;
43 43
44 class SpeechSynthesis FINAL : public RefCountedGarbageCollected<SpeechSynthesis> , public PlatformSpeechSynthesizerClient, public ScriptWrappable, public Context LifecycleObserver, public EventTargetWithInlineData { 44 class SpeechSynthesis FINAL : public GarbageCollectedFinalized<SpeechSynthesis>, public PlatformSpeechSynthesizerClient, public ScriptWrappable, public ContextL ifecycleObserver, public EventTargetWithInlineData {
45 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedGarbageCollected<SpeechSynthesis>) ;
46 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SpeechSynthesis); 45 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SpeechSynthesis);
47 public: 46 public:
48 static SpeechSynthesis* create(ExecutionContext*); 47 static SpeechSynthesis* create(ExecutionContext*);
49 48
50 bool pending() const; 49 bool pending() const;
51 bool speaking() const; 50 bool speaking() const;
52 bool paused() const; 51 bool paused() const;
53 52
54 void speak(SpeechSynthesisUtterance*, ExceptionState&); 53 void speak(SpeechSynthesisUtterance*, ExceptionState&);
55 void cancel(); 54 void cancel();
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 HeapDeque<Member<SpeechSynthesisUtterance> > m_utteranceQueue; 90 HeapDeque<Member<SpeechSynthesisUtterance> > m_utteranceQueue;
92 bool m_isPaused; 91 bool m_isPaused;
93 92
94 // EventTarget 93 // EventTarget
95 virtual const AtomicString& interfaceName() const OVERRIDE; 94 virtual const AtomicString& interfaceName() const OVERRIDE;
96 }; 95 };
97 96
98 } // namespace WebCore 97 } // namespace WebCore
99 98
100 #endif // SpeechSynthesisEvent_h 99 #endif // SpeechSynthesisEvent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698