OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 19 matching lines...) Expand all Loading... |
30 | 30 |
31 #include "bindings/v8/ScriptWrappable.h" | 31 #include "bindings/v8/ScriptWrappable.h" |
32 #include "core/speech/SpeechInputResult.h" | 32 #include "core/speech/SpeechInputResult.h" |
33 #include "heap/Handle.h" | 33 #include "heap/Handle.h" |
34 #include "wtf/PassRefPtr.h" | 34 #include "wtf/PassRefPtr.h" |
35 #include "wtf/RefCounted.h" | 35 #include "wtf/RefCounted.h" |
36 | 36 |
37 namespace WebCore { | 37 namespace WebCore { |
38 | 38 |
39 class SpeechInputResultList : public RefCountedWillBeGarbageCollectedFinalized<S
peechInputResultList>, public ScriptWrappable { | 39 class SpeechInputResultList : public RefCountedWillBeGarbageCollectedFinalized<S
peechInputResultList>, public ScriptWrappable { |
40 DECLARE_GC_INFO; | |
41 public: | 40 public: |
42 static PassRefPtrWillBeRawPtr<SpeechInputResultList> create(const SpeechInpu
tResultArray& results); | 41 static PassRefPtrWillBeRawPtr<SpeechInputResultList> create(const SpeechInpu
tResultArray& results); |
43 | 42 |
44 // Methods from the IDL. | 43 // Methods from the IDL. |
45 size_t length() { return m_results.size(); } | 44 size_t length() { return m_results.size(); } |
46 SpeechInputResult* item(unsigned index); | 45 SpeechInputResult* item(unsigned index); |
47 | 46 |
48 void trace(Visitor *); | 47 void trace(Visitor *); |
49 | 48 |
50 private: | 49 private: |
51 explicit SpeechInputResultList(const SpeechInputResultArray& results); | 50 explicit SpeechInputResultList(const SpeechInputResultArray& results); |
52 | 51 |
53 SpeechInputResultArray m_results; | 52 SpeechInputResultArray m_results; |
54 }; | 53 }; |
55 | 54 |
56 } // namespace WebCore | 55 } // namespace WebCore |
57 | 56 |
58 #endif // ENABLE(INPUT_SPEECH) | 57 #endif // ENABLE(INPUT_SPEECH) |
59 | 58 |
60 #endif // SpeechInputResultList_h | 59 #endif // SpeechInputResultList_h |
OLD | NEW |