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

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

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 25 matching lines...) Expand all
36 36
37 class Document; 37 class Document;
38 38
39 class SpeechRecognitionEvent final : public Event { 39 class SpeechRecognitionEvent final : public Event {
40 DEFINE_WRAPPERTYPEINFO(); 40 DEFINE_WRAPPERTYPEINFO();
41 public: 41 public:
42 static PassRefPtrWillBeRawPtr<SpeechRecognitionEvent> create(); 42 static PassRefPtrWillBeRawPtr<SpeechRecognitionEvent> create();
43 static PassRefPtrWillBeRawPtr<SpeechRecognitionEvent> create(const AtomicStr ing&, const SpeechRecognitionEventInit&); 43 static PassRefPtrWillBeRawPtr<SpeechRecognitionEvent> create(const AtomicStr ing&, const SpeechRecognitionEventInit&);
44 virtual ~SpeechRecognitionEvent(); 44 virtual ~SpeechRecognitionEvent();
45 45
46 static PassRefPtrWillBeRawPtr<SpeechRecognitionEvent> createResult(unsigned long resultIndex, const HeapVector<Member<SpeechRecognitionResult> >& results); 46 static PassRefPtrWillBeRawPtr<SpeechRecognitionEvent> createResult(unsigned long resultIndex, const HeapVector<Member<SpeechRecognitionResult>>& results);
47 static PassRefPtrWillBeRawPtr<SpeechRecognitionEvent> createNoMatch(SpeechRe cognitionResult*); 47 static PassRefPtrWillBeRawPtr<SpeechRecognitionEvent> createNoMatch(SpeechRe cognitionResult*);
48 48
49 unsigned long resultIndex() const { return m_resultIndex; } 49 unsigned long resultIndex() const { return m_resultIndex; }
50 SpeechRecognitionResultList* results() const { return m_results.get(); } 50 SpeechRecognitionResultList* results() const { return m_results.get(); }
51 51
52 // These two methods are here to satisfy the specification which requires th ese attrubutes to exist. 52 // These two methods are here to satisfy the specification which requires th ese attrubutes to exist.
53 Document* interpretation() { return 0; } 53 Document* interpretation() { return 0; }
54 Document* emma() { return 0; } 54 Document* emma() { return 0; }
55 55
56 // Event 56 // Event
57 virtual const AtomicString& interfaceName() const override; 57 virtual const AtomicString& interfaceName() const override;
58 58
59 virtual void trace(Visitor*) override; 59 virtual void trace(Visitor*) override;
60 60
61 private: 61 private:
62 SpeechRecognitionEvent(); 62 SpeechRecognitionEvent();
63 SpeechRecognitionEvent(const AtomicString&, const SpeechRecognitionEventInit &); 63 SpeechRecognitionEvent(const AtomicString&, const SpeechRecognitionEventInit &);
64 SpeechRecognitionEvent(const AtomicString& eventName, unsigned long resultIn dex, SpeechRecognitionResultList* results); 64 SpeechRecognitionEvent(const AtomicString& eventName, unsigned long resultIn dex, SpeechRecognitionResultList* results);
65 65
66 unsigned long m_resultIndex; 66 unsigned long m_resultIndex;
67 PersistentWillBeMember<SpeechRecognitionResultList> m_results; 67 PersistentWillBeMember<SpeechRecognitionResultList> m_results;
68 }; 68 };
69 69
70 } // namespace blink 70 } // namespace blink
71 71
72 #endif // SpeechRecognitionEvent_h 72 #endif // SpeechRecognitionEvent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698