Chromium Code Reviews| 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 20 matching lines...) Expand all Loading... | |
| 31 #include "heap/Heap.h" | 31 #include "heap/Heap.h" |
| 32 #include "modules/speech/SpeechRecognitionResult.h" | 32 #include "modules/speech/SpeechRecognitionResult.h" |
| 33 #include "modules/speech/SpeechRecognitionResultList.h" | 33 #include "modules/speech/SpeechRecognitionResultList.h" |
| 34 #include "wtf/RefPtr.h" | 34 #include "wtf/RefPtr.h" |
| 35 | 35 |
| 36 namespace WebCore { | 36 namespace WebCore { |
| 37 | 37 |
| 38 class Document; | 38 class Document; |
| 39 | 39 |
| 40 class SpeechRecognitionEventInit : public EventInit { | 40 class SpeechRecognitionEventInit : public EventInit { |
| 41 DISALLOW_ALLOCATION(); | 41 DISALLOW_ALLOCATION(); |
|
haraken
2014/03/24 13:52:54
Remove this, since EventInit is already marked as
Mads Ager (chromium)
2014/03/24 14:27:30
Done.
| |
| 42 public: | 42 public: |
| 43 SpeechRecognitionEventInit(); | 43 SpeechRecognitionEventInit(); |
| 44 | 44 |
| 45 unsigned long resultIndex; | 45 unsigned long resultIndex; |
| 46 RefPtrWillBeRawPtr<SpeechRecognitionResultList> results; | 46 RefPtrWillBeRawPtr<SpeechRecognitionResultList> results = nullptr; |
|
haraken
2014/03/24 13:52:54
RefPtrWillBeMember.
Mads Ager (chromium)
2014/03/24 14:27:30
Done.
| |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 class SpeechRecognitionEvent FINAL : public Event { | 49 class SpeechRecognitionEvent FINAL : public Event { |
| 50 public: | 50 public: |
| 51 static PassRefPtr<SpeechRecognitionEvent> create(); | 51 static PassRefPtr<SpeechRecognitionEvent> create(); |
| 52 static PassRefPtr<SpeechRecognitionEvent> create(const AtomicString&, const SpeechRecognitionEventInit&); | 52 static PassRefPtr<SpeechRecognitionEvent> create(const AtomicString&, const SpeechRecognitionEventInit&); |
| 53 virtual ~SpeechRecognitionEvent(); | 53 virtual ~SpeechRecognitionEvent(); |
| 54 | 54 |
| 55 static PassRefPtr<SpeechRecognitionEvent> createResult(unsigned long resultI ndex, const WillBeHeapVector<RefPtrWillBeMember<SpeechRecognitionResult> >& resu lts); | 55 static PassRefPtr<SpeechRecognitionEvent> createResult(unsigned long resultI ndex, const WillBeHeapVector<RefPtrWillBeMember<SpeechRecognitionResult> >& resu lts); |
| 56 static PassRefPtr<SpeechRecognitionEvent> createNoMatch(PassRefPtrWillBeRawP tr<SpeechRecognitionResult>); | 56 static PassRefPtr<SpeechRecognitionEvent> createNoMatch(PassRefPtrWillBeRawP tr<SpeechRecognitionResult>); |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 72 SpeechRecognitionEvent(const AtomicString&, const SpeechRecognitionEventInit &); | 72 SpeechRecognitionEvent(const AtomicString&, const SpeechRecognitionEventInit &); |
| 73 SpeechRecognitionEvent(const AtomicString& eventName, unsigned long resultIn dex, PassRefPtrWillBeRawPtr<SpeechRecognitionResultList> results); | 73 SpeechRecognitionEvent(const AtomicString& eventName, unsigned long resultIn dex, PassRefPtrWillBeRawPtr<SpeechRecognitionResultList> results); |
| 74 | 74 |
| 75 unsigned long m_resultIndex; | 75 unsigned long m_resultIndex; |
| 76 RefPtrWillBeMember<SpeechRecognitionResultList> m_results; | 76 RefPtrWillBeMember<SpeechRecognitionResultList> m_results; |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 } // namespace WebCore | 79 } // namespace WebCore |
| 80 | 80 |
| 81 #endif // SpeechRecognitionEvent_h | 81 #endif // SpeechRecognitionEvent_h |
| OLD | NEW |