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

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

Issue 2191533003: Refactor Timer classes in preparation for landing FrameTimers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More build fixes 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) 2013 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2013 Apple Computer, 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 DECLARE_VIRTUAL_TRACE(); 45 DECLARE_VIRTUAL_TRACE();
46 46
47 private: 47 private:
48 explicit PlatformSpeechSynthesizerMock(PlatformSpeechSynthesizerClient*); 48 explicit PlatformSpeechSynthesizerMock(PlatformSpeechSynthesizerClient*);
49 49
50 void initializeVoiceList() override; 50 void initializeVoiceList() override;
51 51
52 void speakNext(); 52 void speakNext();
53 void speakNow(); 53 void speakNow();
54 54
55 void speakingErrorOccurred(Timer<PlatformSpeechSynthesizerMock>*); 55 void speakingErrorOccurred(TimerBase*);
56 void speakingFinished(Timer<PlatformSpeechSynthesizerMock>*); 56 void speakingFinished(TimerBase*);
57 57
58 Timer<PlatformSpeechSynthesizerMock> m_speakingErrorOccurredTimer; 58 Timer<PlatformSpeechSynthesizerMock> m_speakingErrorOccurredTimer;
59 Timer<PlatformSpeechSynthesizerMock> m_speakingFinishedTimer; 59 Timer<PlatformSpeechSynthesizerMock> m_speakingFinishedTimer;
60 60
61 Member<PlatformSpeechSynthesisUtterance> m_currentUtterance; 61 Member<PlatformSpeechSynthesisUtterance> m_currentUtterance;
62 HeapDeque<Member<PlatformSpeechSynthesisUtterance>> m_queuedUtterances; 62 HeapDeque<Member<PlatformSpeechSynthesisUtterance>> m_queuedUtterances;
63 }; 63 };
64 64
65 } // namespace blink 65 } // namespace blink
66 66
67 #endif // PlatformSpeechSynthesizer_h 67 #endif // PlatformSpeechSynthesizer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698