| 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 11 matching lines...) Expand all Loading... |
| 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #ifndef SpeechInputResultList_h | 26 #ifndef SpeechInputResultList_h |
| 27 #define SpeechInputResultList_h | 27 #define SpeechInputResultList_h |
| 28 | 28 |
| 29 #if ENABLE(INPUT_SPEECH) | 29 #if ENABLE(INPUT_SPEECH) |
| 30 | 30 |
| 31 #include "bindings/v8/ScriptWrappable.h" | 31 #include "bindings/v8/ScriptWrappable.h" |
| 32 #include "core/page/SpeechInputResult.h" | 32 #include "core/speech/SpeechInputResult.h" |
| 33 #include "wtf/PassRefPtr.h" | 33 #include "wtf/PassRefPtr.h" |
| 34 #include "wtf/RefCounted.h" | 34 #include "wtf/RefCounted.h" |
| 35 | 35 |
| 36 namespace WebCore { | 36 namespace WebCore { |
| 37 | 37 |
| 38 class SpeechInputResultList : public RefCounted<SpeechInputResultList>, public S
criptWrappable { | 38 class SpeechInputResultList : public RefCounted<SpeechInputResultList>, public S
criptWrappable { |
| 39 public: | 39 public: |
| 40 static PassRefPtr<SpeechInputResultList> create(const SpeechInputResultArray
& results); | 40 static PassRefPtr<SpeechInputResultList> create(const SpeechInputResultArray
& results); |
| 41 | 41 |
| 42 // Methods from the IDL. | 42 // Methods from the IDL. |
| 43 size_t length() { return m_results.size(); } | 43 size_t length() { return m_results.size(); } |
| 44 SpeechInputResult* item(unsigned index); | 44 SpeechInputResult* item(unsigned index); |
| 45 | 45 |
| 46 private: | 46 private: |
| 47 explicit SpeechInputResultList(const SpeechInputResultArray& results); | 47 explicit SpeechInputResultList(const SpeechInputResultArray& results); |
| 48 | 48 |
| 49 SpeechInputResultArray m_results; | 49 SpeechInputResultArray m_results; |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 } // namespace WebCore | 52 } // namespace WebCore |
| 53 | 53 |
| 54 #endif // ENABLE(INPUT_SPEECH) | 54 #endif // ENABLE(INPUT_SPEECH) |
| 55 | 55 |
| 56 #endif // SpeechInputResultList_h | 56 #endif // SpeechInputResultList_h |
| OLD | NEW |