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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 } | 61 } |
62 | 62 |
63 const AtomicString& SpeechRecognitionEvent::interfaceName() const | 63 const AtomicString& SpeechRecognitionEvent::interfaceName() const |
64 { | 64 { |
65 return EventNames::SpeechRecognitionEvent; | 65 return EventNames::SpeechRecognitionEvent; |
66 } | 66 } |
67 | 67 |
68 SpeechRecognitionEvent::SpeechRecognitionEvent() | 68 SpeechRecognitionEvent::SpeechRecognitionEvent() |
69 : m_resultIndex(0) | 69 : m_resultIndex(0) |
70 { | 70 { |
71 ScriptWrappable::init(this); | |
72 } | 71 } |
73 | 72 |
74 SpeechRecognitionEvent::SpeechRecognitionEvent(const AtomicString& eventName, co
nst SpeechRecognitionEventInit& initializer) | 73 SpeechRecognitionEvent::SpeechRecognitionEvent(const AtomicString& eventName, co
nst SpeechRecognitionEventInit& initializer) |
75 : Event(eventName, initializer) | 74 : Event(eventName, initializer) |
76 , m_resultIndex(initializer.resultIndex) | 75 , m_resultIndex(initializer.resultIndex) |
77 , m_results(initializer.results) | 76 , m_results(initializer.results) |
78 { | 77 { |
79 ScriptWrappable::init(this); | |
80 } | 78 } |
81 | 79 |
82 SpeechRecognitionEvent::SpeechRecognitionEvent(const AtomicString& eventName, un
signed long resultIndex, SpeechRecognitionResultList* results) | 80 SpeechRecognitionEvent::SpeechRecognitionEvent(const AtomicString& eventName, un
signed long resultIndex, SpeechRecognitionResultList* results) |
83 : Event(eventName, /*canBubble=*/false, /*cancelable=*/false) | 81 : Event(eventName, /*canBubble=*/false, /*cancelable=*/false) |
84 , m_resultIndex(resultIndex) | 82 , m_resultIndex(resultIndex) |
85 , m_results(results) | 83 , m_results(results) |
86 { | 84 { |
87 ScriptWrappable::init(this); | |
88 } | 85 } |
89 | 86 |
90 SpeechRecognitionEvent::~SpeechRecognitionEvent() | 87 SpeechRecognitionEvent::~SpeechRecognitionEvent() |
91 { | 88 { |
92 } | 89 } |
93 | 90 |
94 void SpeechRecognitionEvent::trace(Visitor* visitor) | 91 void SpeechRecognitionEvent::trace(Visitor* visitor) |
95 { | 92 { |
96 visitor->trace(m_results); | 93 visitor->trace(m_results); |
97 Event::trace(visitor); | 94 Event::trace(visitor); |
98 } | 95 } |
99 | 96 |
100 } // namespace blink | 97 } // namespace blink |
OLD | NEW |