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

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

Issue 478243002: bindings: Adds virtual ScriptWrappable::wrap method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 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/speech/PlatformSpeechSynthesisUtterance.h" 34 #include "platform/speech/PlatformSpeechSynthesisUtterance.h"
35 #include "platform/speech/PlatformSpeechSynthesizer.h" 35 #include "platform/speech/PlatformSpeechSynthesizer.h"
36 36
37 namespace blink { 37 namespace blink {
38 38
39 class ExceptionState; 39 class ExceptionState;
40 class PlatformSpeechSynthesizerClient; 40 class PlatformSpeechSynthesizerClient;
41 41
42 class SpeechSynthesis FINAL : public RefCountedGarbageCollectedWillBeGarbageColl ectedFinalized<SpeechSynthesis>, public PlatformSpeechSynthesizerClient, public ContextLifecycleObserver, public EventTargetWithInlineData { 42 class SpeechSynthesis FINAL : public RefCountedGarbageCollectedWillBeGarbageColl ectedFinalized<SpeechSynthesis>, public PlatformSpeechSynthesizerClient, public ContextLifecycleObserver, public EventTargetWithInlineData {
43 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<S peechSynthesis>); 43 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<S peechSynthesis>);
44 DEFINE_WRAPPERTYPEINFO();
44 USING_GARBAGE_COLLECTED_MIXIN(SpeechSynthesis); 45 USING_GARBAGE_COLLECTED_MIXIN(SpeechSynthesis);
45 public: 46 public:
46 static SpeechSynthesis* create(ExecutionContext*); 47 static SpeechSynthesis* create(ExecutionContext*);
47 48
48 bool pending() const; 49 bool pending() const;
49 bool speaking() const; 50 bool speaking() const;
50 bool paused() const; 51 bool paused() const;
51 52
52 void speak(SpeechSynthesisUtterance*, ExceptionState&); 53 void speak(SpeechSynthesisUtterance*, ExceptionState&);
53 void cancel(); 54 void cancel();
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 HeapDeque<Member<SpeechSynthesisUtterance> > m_utteranceQueue; 90 HeapDeque<Member<SpeechSynthesisUtterance> > m_utteranceQueue;
90 bool m_isPaused; 91 bool m_isPaused;
91 92
92 // EventTarget 93 // EventTarget
93 virtual const AtomicString& interfaceName() const OVERRIDE; 94 virtual const AtomicString& interfaceName() const OVERRIDE;
94 }; 95 };
95 96
96 } // namespace blink 97 } // namespace blink
97 98
98 #endif // SpeechSynthesisEvent_h 99 #endif // SpeechSynthesisEvent_h
OLDNEW
« no previous file with comments | « Source/modules/speech/SpeechRecognitionResultList.h ('k') | Source/modules/speech/SpeechSynthesisEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698