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(); | |
wibling-chromium
2014/03/24 08:18:37
It is a bit unfortunate that we cannot see this ob
zerny-chromium
2014/03/24 08:32:28
I agree, but requiring it to be added is too intru
| |
42 public: | 41 public: |
43 SpeechRecognitionEventInit(); | 42 SpeechRecognitionEventInit(); |
44 | 43 |
45 unsigned long resultIndex; | 44 unsigned long resultIndex; |
46 RefPtrWillBeRawPtr<SpeechRecognitionResultList> results; | 45 RefPtrWillBeMember<SpeechRecognitionResultList> results; |
47 }; | 46 }; |
48 | 47 |
49 class SpeechRecognitionEvent FINAL : public Event { | 48 class SpeechRecognitionEvent FINAL : public Event { |
50 public: | 49 public: |
51 static PassRefPtr<SpeechRecognitionEvent> create(); | 50 static PassRefPtr<SpeechRecognitionEvent> create(); |
52 static PassRefPtr<SpeechRecognitionEvent> create(const AtomicString&, const SpeechRecognitionEventInit&); | 51 static PassRefPtr<SpeechRecognitionEvent> create(const AtomicString&, const SpeechRecognitionEventInit&); |
53 virtual ~SpeechRecognitionEvent(); | 52 virtual ~SpeechRecognitionEvent(); |
54 | 53 |
55 static PassRefPtr<SpeechRecognitionEvent> createResult(unsigned long resultI ndex, const WillBeHeapVector<RefPtrWillBeMember<SpeechRecognitionResult> >& resu lts); | 54 static PassRefPtr<SpeechRecognitionEvent> createResult(unsigned long resultI ndex, const WillBeHeapVector<RefPtrWillBeMember<SpeechRecognitionResult> >& resu lts); |
56 static PassRefPtr<SpeechRecognitionEvent> createNoMatch(PassRefPtrWillBeRawP tr<SpeechRecognitionResult>); | 55 static PassRefPtr<SpeechRecognitionEvent> createNoMatch(PassRefPtrWillBeRawP tr<SpeechRecognitionResult>); |
(...skipping 15 matching lines...) Expand all Loading... | |
72 SpeechRecognitionEvent(const AtomicString&, const SpeechRecognitionEventInit &); | 71 SpeechRecognitionEvent(const AtomicString&, const SpeechRecognitionEventInit &); |
73 SpeechRecognitionEvent(const AtomicString& eventName, unsigned long resultIn dex, PassRefPtrWillBeRawPtr<SpeechRecognitionResultList> results); | 72 SpeechRecognitionEvent(const AtomicString& eventName, unsigned long resultIn dex, PassRefPtrWillBeRawPtr<SpeechRecognitionResultList> results); |
74 | 73 |
75 unsigned long m_resultIndex; | 74 unsigned long m_resultIndex; |
76 RefPtrWillBeMember<SpeechRecognitionResultList> m_results; | 75 RefPtrWillBeMember<SpeechRecognitionResultList> m_results; |
77 }; | 76 }; |
78 | 77 |
79 } // namespace WebCore | 78 } // namespace WebCore |
80 | 79 |
81 #endif // SpeechRecognitionEvent_h | 80 #endif // SpeechRecognitionEvent_h |
OLD | NEW |