| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Apple Inc. All rights reserved. | 2 * Copyright (C) 2013 Apple 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 24 matching lines...) Expand all Loading... |
| 35 return adoptRef(new SpeechSynthesisEvent()); | 35 return adoptRef(new SpeechSynthesisEvent()); |
| 36 } | 36 } |
| 37 | 37 |
| 38 PassRefPtr<SpeechSynthesisEvent> SpeechSynthesisEvent::create(const AtomicString
& type, unsigned long charIndex, float elapsedTime, const String& name) | 38 PassRefPtr<SpeechSynthesisEvent> SpeechSynthesisEvent::create(const AtomicString
& type, unsigned long charIndex, float elapsedTime, const String& name) |
| 39 { | 39 { |
| 40 return adoptRef(new SpeechSynthesisEvent(type, charIndex, elapsedTime, name)
); | 40 return adoptRef(new SpeechSynthesisEvent(type, charIndex, elapsedTime, name)
); |
| 41 } | 41 } |
| 42 | 42 |
| 43 SpeechSynthesisEvent::SpeechSynthesisEvent() | 43 SpeechSynthesisEvent::SpeechSynthesisEvent() |
| 44 { | 44 { |
| 45 ScriptWrappable::init(this); |
| 45 } | 46 } |
| 46 | 47 |
| 47 SpeechSynthesisEvent::SpeechSynthesisEvent(const AtomicString& type, unsigned lo
ng charIndex, float elapsedTime, const String& name) | 48 SpeechSynthesisEvent::SpeechSynthesisEvent(const AtomicString& type, unsigned lo
ng charIndex, float elapsedTime, const String& name) |
| 48 : Event(type, false, false) | 49 : Event(type, false, false) |
| 49 , m_charIndex(charIndex) | 50 , m_charIndex(charIndex) |
| 50 , m_elapsedTime(elapsedTime) | 51 , m_elapsedTime(elapsedTime) |
| 51 , m_name(name) | 52 , m_name(name) |
| 52 { | 53 { |
| 53 } | 54 } |
| 54 | 55 |
| 55 } // namespace WebCore | 56 } // namespace WebCore |
| 56 | 57 |
| 57 #endif // ENABLE(SPEECH_SYNTHESIS) | 58 #endif // ENABLE(SPEECH_SYNTHESIS) |
| OLD | NEW |