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

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

Issue 1163253003: Clean up macros around DEFINE_EVENT_TARGET_REFCOUNTING (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 37
38 namespace blink { 38 namespace blink {
39 39
40 class ExceptionState; 40 class ExceptionState;
41 class PlatformSpeechSynthesizerClient; 41 class PlatformSpeechSynthesizerClient;
42 42
43 class MODULES_EXPORT SpeechSynthesis final : public RefCountedGarbageCollectedEv entTargetWithInlineData<SpeechSynthesis>, public PlatformSpeechSynthesizerClient , public ContextLifecycleObserver { 43 class MODULES_EXPORT SpeechSynthesis final : public RefCountedGarbageCollectedEv entTargetWithInlineData<SpeechSynthesis>, public PlatformSpeechSynthesizerClient , public ContextLifecycleObserver {
44 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<S peechSynthesis>); 44 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(SpeechSynthesis);
45 DEFINE_WRAPPERTYPEINFO(); 45 DEFINE_WRAPPERTYPEINFO();
46 USING_GARBAGE_COLLECTED_MIXIN(SpeechSynthesis); 46 USING_GARBAGE_COLLECTED_MIXIN(SpeechSynthesis);
47 public: 47 public:
48 static SpeechSynthesis* create(ExecutionContext*); 48 static SpeechSynthesis* create(ExecutionContext*);
49 49
50 bool pending() const; 50 bool pending() const;
51 bool speaking() const; 51 bool speaking() const;
52 bool paused() const; 52 bool paused() const;
53 53
54 void speak(SpeechSynthesisUtterance*, ExceptionState&); 54 void speak(SpeechSynthesisUtterance*, ExceptionState&);
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 HeapDeque<Member<SpeechSynthesisUtterance>> m_utteranceQueue; 91 HeapDeque<Member<SpeechSynthesisUtterance>> m_utteranceQueue;
92 bool m_isPaused; 92 bool m_isPaused;
93 93
94 // EventTarget 94 // EventTarget
95 virtual const AtomicString& interfaceName() const override; 95 virtual const AtomicString& interfaceName() const override;
96 }; 96 };
97 97
98 } // namespace blink 98 } // namespace blink
99 99
100 #endif // SpeechSynthesisEvent_h 100 #endif // SpeechSynthesisEvent_h
OLDNEW
« no previous file with comments | « Source/modules/speech/SpeechRecognition.h ('k') | Source/modules/speech/SpeechSynthesisUtterance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698