| OLD | NEW | 
|   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 21 matching lines...) Expand all  Loading... | 
|  32 PassRefPtrWillBeRawPtr<SpeechRecognitionEvent> SpeechRecognitionEvent::create() |  32 PassRefPtrWillBeRawPtr<SpeechRecognitionEvent> SpeechRecognitionEvent::create() | 
|  33 { |  33 { | 
|  34     return adoptRefWillBeNoop(new SpeechRecognitionEvent); |  34     return adoptRefWillBeNoop(new SpeechRecognitionEvent); | 
|  35 } |  35 } | 
|  36  |  36  | 
|  37 PassRefPtrWillBeRawPtr<SpeechRecognitionEvent> SpeechRecognitionEvent::create(co
    nst AtomicString& eventName, const SpeechRecognitionEventInit& initializer) |  37 PassRefPtrWillBeRawPtr<SpeechRecognitionEvent> SpeechRecognitionEvent::create(co
    nst AtomicString& eventName, const SpeechRecognitionEventInit& initializer) | 
|  38 { |  38 { | 
|  39     return adoptRefWillBeNoop(new SpeechRecognitionEvent(eventName, initializer)
    ); |  39     return adoptRefWillBeNoop(new SpeechRecognitionEvent(eventName, initializer)
    ); | 
|  40 } |  40 } | 
|  41  |  41  | 
|  42 PassRefPtrWillBeRawPtr<SpeechRecognitionEvent> SpeechRecognitionEvent::createRes
    ult(unsigned long resultIndex, const HeapVector<Member<SpeechRecognitionResult> 
    >& results) |  42 PassRefPtrWillBeRawPtr<SpeechRecognitionEvent> SpeechRecognitionEvent::createRes
    ult(unsigned long resultIndex, const HeapVector<Member<SpeechRecognitionResult>>
    & results) | 
|  43 { |  43 { | 
|  44     return adoptRefWillBeNoop(new SpeechRecognitionEvent(EventTypeNames::result,
     resultIndex, SpeechRecognitionResultList::create(results))); |  44     return adoptRefWillBeNoop(new SpeechRecognitionEvent(EventTypeNames::result,
     resultIndex, SpeechRecognitionResultList::create(results))); | 
|  45 } |  45 } | 
|  46  |  46  | 
|  47 PassRefPtrWillBeRawPtr<SpeechRecognitionEvent> SpeechRecognitionEvent::createNoM
    atch(SpeechRecognitionResult* result) |  47 PassRefPtrWillBeRawPtr<SpeechRecognitionEvent> SpeechRecognitionEvent::createNoM
    atch(SpeechRecognitionResult* result) | 
|  48 { |  48 { | 
|  49     if (result) { |  49     if (result) { | 
|  50         HeapVector<Member<SpeechRecognitionResult> > results; |  50         HeapVector<Member<SpeechRecognitionResult>> results; | 
|  51         results.append(result); |  51         results.append(result); | 
|  52         return adoptRefWillBeNoop(new SpeechRecognitionEvent(EventTypeNames::nom
    atch, 0, SpeechRecognitionResultList::create(results))); |  52         return adoptRefWillBeNoop(new SpeechRecognitionEvent(EventTypeNames::nom
    atch, 0, SpeechRecognitionResultList::create(results))); | 
|  53     } |  53     } | 
|  54  |  54  | 
|  55     return adoptRefWillBeNoop(new SpeechRecognitionEvent(EventTypeNames::nomatch
    , 0, nullptr)); |  55     return adoptRefWillBeNoop(new SpeechRecognitionEvent(EventTypeNames::nomatch
    , 0, nullptr)); | 
|  56 } |  56 } | 
|  57  |  57  | 
|  58 const AtomicString& SpeechRecognitionEvent::interfaceName() const |  58 const AtomicString& SpeechRecognitionEvent::interfaceName() const | 
|  59 { |  59 { | 
|  60     return EventNames::SpeechRecognitionEvent; |  60     return EventNames::SpeechRecognitionEvent; | 
| (...skipping 25 matching lines...) Expand all  Loading... | 
|  86 { |  86 { | 
|  87 } |  87 } | 
|  88  |  88  | 
|  89 void SpeechRecognitionEvent::trace(Visitor* visitor) |  89 void SpeechRecognitionEvent::trace(Visitor* visitor) | 
|  90 { |  90 { | 
|  91     visitor->trace(m_results); |  91     visitor->trace(m_results); | 
|  92     Event::trace(visitor); |  92     Event::trace(visitor); | 
|  93 } |  93 } | 
|  94  |  94  | 
|  95 } // namespace blink |  95 } // namespace blink | 
| OLD | NEW |