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

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

Issue 208273002: Remove usage of {,un}setPendingActivity from SpeechRecognition (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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) 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 void didReceiveNoMatch(PassRefPtrWillBeRawPtr<SpeechRecognitionResult>); 78 void didReceiveNoMatch(PassRefPtrWillBeRawPtr<SpeechRecognitionResult>);
79 void didReceiveError(PassRefPtr<SpeechRecognitionError>); 79 void didReceiveError(PassRefPtr<SpeechRecognitionError>);
80 void didStart(); 80 void didStart();
81 void didEnd(); 81 void didEnd();
82 82
83 // EventTarget. 83 // EventTarget.
84 virtual const AtomicString& interfaceName() const OVERRIDE; 84 virtual const AtomicString& interfaceName() const OVERRIDE;
85 virtual ExecutionContext* executionContext() const OVERRIDE; 85 virtual ExecutionContext* executionContext() const OVERRIDE;
86 86
87 // ActiveDOMObject. 87 // ActiveDOMObject.
88 virtual bool hasPendingActivity() const OVERRIDE;
88 virtual void stop() OVERRIDE; 89 virtual void stop() OVERRIDE;
89 90
90 DEFINE_ATTRIBUTE_EVENT_LISTENER(audiostart); 91 DEFINE_ATTRIBUTE_EVENT_LISTENER(audiostart);
91 DEFINE_ATTRIBUTE_EVENT_LISTENER(soundstart); 92 DEFINE_ATTRIBUTE_EVENT_LISTENER(soundstart);
92 DEFINE_ATTRIBUTE_EVENT_LISTENER(speechstart); 93 DEFINE_ATTRIBUTE_EVENT_LISTENER(speechstart);
93 DEFINE_ATTRIBUTE_EVENT_LISTENER(speechend); 94 DEFINE_ATTRIBUTE_EVENT_LISTENER(speechend);
94 DEFINE_ATTRIBUTE_EVENT_LISTENER(soundend); 95 DEFINE_ATTRIBUTE_EVENT_LISTENER(soundend);
95 DEFINE_ATTRIBUTE_EVENT_LISTENER(audioend); 96 DEFINE_ATTRIBUTE_EVENT_LISTENER(audioend);
96 DEFINE_ATTRIBUTE_EVENT_LISTENER(result); 97 DEFINE_ATTRIBUTE_EVENT_LISTENER(result);
97 DEFINE_ATTRIBUTE_EVENT_LISTENER(nomatch); 98 DEFINE_ATTRIBUTE_EVENT_LISTENER(nomatch);
(...skipping 17 matching lines...) Expand all
115 SpeechRecognitionController* m_controller; 116 SpeechRecognitionController* m_controller;
116 bool m_stoppedByActiveDOMObject; 117 bool m_stoppedByActiveDOMObject;
117 bool m_started; 118 bool m_started;
118 bool m_stopping; 119 bool m_stopping;
119 WillBeHeapVector<RefPtrWillBeMember<SpeechRecognitionResult> > m_finalResult s; 120 WillBeHeapVector<RefPtrWillBeMember<SpeechRecognitionResult> > m_finalResult s;
120 }; 121 };
121 122
122 } // namespace WebCore 123 } // namespace WebCore
123 124
124 #endif // SpeechRecognition_h 125 #endif // SpeechRecognition_h
OLDNEW
« no previous file with comments | « no previous file | Source/modules/speech/SpeechRecognition.cpp » ('j') | Source/modules/speech/SpeechRecognition.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698