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

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

Issue 2265873003: binding: Moves hasPendingActivity from ActiveScriptWrappable to ScriptWrappable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed review comments. Created 4 years, 4 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(SpeechRecognitionError*); 85 void didReceiveError(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* getExecutionContext() const override; 91 ExecutionContext* getExecutionContext() const override;
92 92
93 // ActiveScriptWrappable. 93 // ScriptWrappable
94 bool hasPendingActivity() const final; 94 bool hasPendingActivity() const final;
95 95
96 // ActiveDOMObject 96 // ActiveDOMObject
97 void contextDestroyed() override; 97 void contextDestroyed() override;
98 98
99 DEFINE_ATTRIBUTE_EVENT_LISTENER(audiostart); 99 DEFINE_ATTRIBUTE_EVENT_LISTENER(audiostart);
100 DEFINE_ATTRIBUTE_EVENT_LISTENER(soundstart); 100 DEFINE_ATTRIBUTE_EVENT_LISTENER(soundstart);
101 DEFINE_ATTRIBUTE_EVENT_LISTENER(speechstart); 101 DEFINE_ATTRIBUTE_EVENT_LISTENER(speechstart);
102 DEFINE_ATTRIBUTE_EVENT_LISTENER(speechend); 102 DEFINE_ATTRIBUTE_EVENT_LISTENER(speechend);
103 DEFINE_ATTRIBUTE_EVENT_LISTENER(soundend); 103 DEFINE_ATTRIBUTE_EVENT_LISTENER(soundend);
(...skipping 18 matching lines...) Expand all
122 122
123 Member<SpeechRecognitionController> m_controller; 123 Member<SpeechRecognitionController> m_controller;
124 bool m_started; 124 bool m_started;
125 bool m_stopping; 125 bool m_stopping;
126 HeapVector<Member<SpeechRecognitionResult>> m_finalResults; 126 HeapVector<Member<SpeechRecognitionResult>> m_finalResults;
127 }; 127 };
128 128
129 } // namespace blink 129 } // namespace blink
130 130
131 #endif // SpeechRecognition_h 131 #endif // SpeechRecognition_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698