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

Side by Side Diff: Source/modules/speech/SpeechRecognitionEvent.cpp

Issue 864533002: Fix template angle bracket syntax in modules (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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 21 matching lines...) Expand all
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698