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

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

Issue 168963003: Make WebPrivatePtr capable of wrapping garbage collected objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Temporarily drop back to using .reset() instead of nullptr. Created 6 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 void stopFunction(); 68 void stopFunction();
69 void abort(); 69 void abort();
70 70
71 // Called by the SpeechRecognitionClient. 71 // Called by the SpeechRecognitionClient.
72 void didStartAudio(); 72 void didStartAudio();
73 void didStartSound(); 73 void didStartSound();
74 void didStartSpeech(); 74 void didStartSpeech();
75 void didEndSpeech(); 75 void didEndSpeech();
76 void didEndSound(); 76 void didEndSound();
77 void didEndAudio(); 77 void didEndAudio();
78 void didReceiveResults(const Vector<RefPtr<SpeechRecognitionResult> >& newFi nalResults, const Vector<RefPtr<SpeechRecognitionResult> >& currentInterimResult s); 78 void didReceiveResults(const WillBeHeapVector<RefPtrWillBeMember<SpeechRecog nitionResult> >& newFinalResults, const WillBeHeapVector<RefPtrWillBeMember<Spee chRecognitionResult> >& currentInterimResults);
79 void didReceiveNoMatch(PassRefPtr<SpeechRecognitionResult>); 79 void didReceiveNoMatch(PassRefPtrWillBeRawPtr<SpeechRecognitionResult>);
80 void didReceiveError(PassRefPtr<SpeechRecognitionError>); 80 void didReceiveError(PassRefPtr<SpeechRecognitionError>);
81 void didStart(); 81 void didStart();
82 void didEnd(); 82 void didEnd();
83 83
84 // EventTarget. 84 // EventTarget.
85 virtual const AtomicString& interfaceName() const OVERRIDE; 85 virtual const AtomicString& interfaceName() const OVERRIDE;
86 virtual ExecutionContext* executionContext() const OVERRIDE; 86 virtual ExecutionContext* executionContext() const OVERRIDE;
87 87
88 // ActiveDOMObject. 88 // ActiveDOMObject.
89 virtual void stop() OVERRIDE; 89 virtual void stop() OVERRIDE;
(...skipping 20 matching lines...) Expand all
110 RefPtrWillBeMember<SpeechGrammarList> m_grammars; 110 RefPtrWillBeMember<SpeechGrammarList> m_grammars;
111 String m_lang; 111 String m_lang;
112 bool m_continuous; 112 bool m_continuous;
113 bool m_interimResults; 113 bool m_interimResults;
114 unsigned long m_maxAlternatives; 114 unsigned long m_maxAlternatives;
115 115
116 SpeechRecognitionController* m_controller; 116 SpeechRecognitionController* m_controller;
117 bool m_stoppedByActiveDOMObject; 117 bool m_stoppedByActiveDOMObject;
118 bool m_started; 118 bool m_started;
119 bool m_stopping; 119 bool m_stopping;
120 Vector<RefPtr<SpeechRecognitionResult> > m_finalResults; 120 WillBeHeapVector<RefPtrWillBeMember<SpeechRecognitionResult> > m_finalResult s;
121 }; 121 };
122 122
123 } // namespace WebCore 123 } // namespace WebCore
124 124
125 #endif // SpeechRecognition_h 125 #endif // SpeechRecognition_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698