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 14 matching lines...) Expand all Loading... |
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/page/SpeechInputResult.h" |
33 #include "wtf/PassRefPtr.h" | 33 #include "wtf/PassRefPtr.h" |
34 #include "wtf/RefCounted.h" | 34 #include "wtf/RefCounted.h" |
35 #include "wtf/Vector.h" | |
36 | 35 |
37 namespace WebCore { | 36 namespace WebCore { |
38 | 37 |
39 class SpeechInputResultList : public RefCounted<SpeechInputResultList>, public S
criptWrappable { | 38 class SpeechInputResultList : public RefCounted<SpeechInputResultList>, public S
criptWrappable { |
40 public: | 39 public: |
41 static PassRefPtr<SpeechInputResultList> create(const SpeechInputResultArray
& results); | 40 static PassRefPtr<SpeechInputResultList> create(const SpeechInputResultArray
& results); |
42 | 41 |
43 // Methods from the IDL. | 42 // Methods from the IDL. |
44 size_t length() { return m_results.size(); } | 43 size_t length() { return m_results.size(); } |
45 SpeechInputResult* item(unsigned index); | 44 SpeechInputResult* item(unsigned index); |
46 | 45 |
47 private: | 46 private: |
48 explicit SpeechInputResultList(const SpeechInputResultArray& results); | 47 explicit SpeechInputResultList(const SpeechInputResultArray& results); |
49 | 48 |
50 SpeechInputResultArray m_results; | 49 SpeechInputResultArray m_results; |
51 }; | 50 }; |
52 | 51 |
53 } // namespace WebCore | 52 } // namespace WebCore |
54 | 53 |
55 #endif // ENABLE(INPUT_SPEECH) | 54 #endif // ENABLE(INPUT_SPEECH) |
56 | 55 |
57 #endif // SpeechInputResultList_h | 56 #endif // SpeechInputResultList_h |
OLD | NEW |