| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 unsigned long resultIndex() const { return m_resultIndex; } | 58 unsigned long resultIndex() const { return m_resultIndex; } |
| 59 SpeechRecognitionResultList* results() const { return m_results.get(); } | 59 SpeechRecognitionResultList* results() const { return m_results.get(); } |
| 60 | 60 |
| 61 // These two methods are here to satisfy the specification which requires th
ese attrubutes to exist. | 61 // These two methods are here to satisfy the specification which requires th
ese attrubutes to exist. |
| 62 Document* interpretation() { return 0; } | 62 Document* interpretation() { return 0; } |
| 63 Document* emma() { return 0; } | 63 Document* emma() { return 0; } |
| 64 | 64 |
| 65 // Event | 65 // Event |
| 66 virtual const AtomicString& interfaceName() const OVERRIDE; | 66 virtual const AtomicString& interfaceName() const OVERRIDE; |
| 67 | 67 |
| 68 virtual void trace(Visitor*) OVERRIDE; |
| 69 |
| 68 private: | 70 private: |
| 69 SpeechRecognitionEvent(); | 71 SpeechRecognitionEvent(); |
| 70 SpeechRecognitionEvent(const AtomicString&, const SpeechRecognitionEventInit
&); | 72 SpeechRecognitionEvent(const AtomicString&, const SpeechRecognitionEventInit
&); |
| 71 SpeechRecognitionEvent(const AtomicString& eventName, unsigned long resultIn
dex, PassRefPtrWillBeRawPtr<SpeechRecognitionResultList> results); | 73 SpeechRecognitionEvent(const AtomicString& eventName, unsigned long resultIn
dex, PassRefPtrWillBeRawPtr<SpeechRecognitionResultList> results); |
| 72 | 74 |
| 73 unsigned long m_resultIndex; | 75 unsigned long m_resultIndex; |
| 74 RefPtrWillBePersistent<SpeechRecognitionResultList> m_results; | 76 RefPtrWillBeMember<SpeechRecognitionResultList> m_results; |
| 75 }; | 77 }; |
| 76 | 78 |
| 77 } // namespace WebCore | 79 } // namespace WebCore |
| 78 | 80 |
| 79 #endif // SpeechRecognitionEvent_h | 81 #endif // SpeechRecognitionEvent_h |
| OLD | NEW |