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

Side by Side Diff: third_party/WebKit/Source/modules/speech/SpeechRecognition.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google 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 * * Redistributions of source code must retain the above copyright 7 * * 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 * * Redistributions in binary form must reproduce the above copyright 9 * * 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 29 matching lines...) Expand all
40 namespace blink { 40 namespace blink {
41 41
42 class ExceptionState; 42 class ExceptionState;
43 class ExecutionContext; 43 class ExecutionContext;
44 class MediaStreamTrack; 44 class MediaStreamTrack;
45 class SpeechRecognitionController; 45 class SpeechRecognitionController;
46 class SpeechRecognitionError; 46 class SpeechRecognitionError;
47 47
48 class MODULES_EXPORT SpeechRecognition final : public RefCountedGarbageCollected EventTargetWithInlineData<SpeechRecognition>, public PageLifecycleObserver, publ ic ActiveDOMObject { 48 class MODULES_EXPORT SpeechRecognition final : public RefCountedGarbageCollected EventTargetWithInlineData<SpeechRecognition>, public PageLifecycleObserver, publ ic ActiveDOMObject {
49 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(SpeechRecognition); 49 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(SpeechRecognition);
50 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SpeechRecognition); 50 USING_GARBAGE_COLLECTED_MIXIN(SpeechRecognition);
51 DEFINE_WRAPPERTYPEINFO(); 51 DEFINE_WRAPPERTYPEINFO();
52 public: 52 public:
53 static SpeechRecognition* create(ExecutionContext*); 53 static SpeechRecognition* create(ExecutionContext*);
54 ~SpeechRecognition() override; 54 ~SpeechRecognition() override;
55 55
56 // SpeechRecognition.idl implemementation. 56 // SpeechRecognition.idl implemementation.
57 // Attributes. 57 // Attributes.
58 SpeechGrammarList* grammars() { return m_grammars; } 58 SpeechGrammarList* grammars() { return m_grammars; }
59 void setGrammars(SpeechGrammarList* grammars) { m_grammars = grammars; } 59 void setGrammars(SpeechGrammarList* grammars) { m_grammars = grammars; }
60 String lang() { return m_lang; } 60 String lang() { return m_lang; }
(...skipping 14 matching lines...) Expand all
75 75
76 // Called by the SpeechRecognitionClient. 76 // Called by the SpeechRecognitionClient.
77 void didStartAudio(); 77 void didStartAudio();
78 void didStartSound(); 78 void didStartSound();
79 void didStartSpeech(); 79 void didStartSpeech();
80 void didEndSpeech(); 80 void didEndSpeech();
81 void didEndSound(); 81 void didEndSound();
82 void didEndAudio(); 82 void didEndAudio();
83 void didReceiveResults(const HeapVector<Member<SpeechRecognitionResult>>& ne wFinalResults, const HeapVector<Member<SpeechRecognitionResult>>& currentInterim Results); 83 void didReceiveResults(const HeapVector<Member<SpeechRecognitionResult>>& ne wFinalResults, const HeapVector<Member<SpeechRecognitionResult>>& currentInterim Results);
84 void didReceiveNoMatch(SpeechRecognitionResult*); 84 void didReceiveNoMatch(SpeechRecognitionResult*);
85 void didReceiveError(PassRefPtrWillBeRawPtr<SpeechRecognitionError>); 85 void didReceiveError(RawPtr<SpeechRecognitionError>);
86 void didStart(); 86 void didStart();
87 void didEnd(); 87 void didEnd();
88 88
89 // EventTarget. 89 // EventTarget.
90 const AtomicString& interfaceName() const override; 90 const AtomicString& interfaceName() const override;
91 ExecutionContext* executionContext() const override; 91 ExecutionContext* executionContext() const override;
92 92
93 // ActiveDOMObject. 93 // ActiveDOMObject.
94 bool hasPendingActivity() const override; 94 bool hasPendingActivity() const override;
95 void stop() override; 95 void stop() override;
(...skipping 18 matching lines...) Expand all
114 private: 114 private:
115 SpeechRecognition(Page*, ExecutionContext*); 115 SpeechRecognition(Page*, ExecutionContext*);
116 116
117 Member<SpeechGrammarList> m_grammars; 117 Member<SpeechGrammarList> m_grammars;
118 Member<MediaStreamTrack> m_audioTrack; 118 Member<MediaStreamTrack> m_audioTrack;
119 String m_lang; 119 String m_lang;
120 bool m_continuous; 120 bool m_continuous;
121 bool m_interimResults; 121 bool m_interimResults;
122 unsigned long m_maxAlternatives; 122 unsigned long m_maxAlternatives;
123 123
124 RawPtrWillBeMember<SpeechRecognitionController> m_controller; 124 Member<SpeechRecognitionController> m_controller;
125 bool m_stoppedByActiveDOMObject; 125 bool m_stoppedByActiveDOMObject;
126 bool m_started; 126 bool m_started;
127 bool m_stopping; 127 bool m_stopping;
128 HeapVector<Member<SpeechRecognitionResult>> m_finalResults; 128 HeapVector<Member<SpeechRecognitionResult>> m_finalResults;
129 }; 129 };
130 130
131 } // namespace blink 131 } // namespace blink
132 132
133 #endif // SpeechRecognition_h 133 #endif // SpeechRecognition_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698