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 13 matching lines...) Expand all Loading... |
24 */ | 24 */ |
25 | 25 |
26 #ifndef SpeechInputEvent_h | 26 #ifndef SpeechInputEvent_h |
27 #define SpeechInputEvent_h | 27 #define SpeechInputEvent_h |
28 | 28 |
29 #if ENABLE(INPUT_SPEECH) | 29 #if ENABLE(INPUT_SPEECH) |
30 | 30 |
31 #include "core/dom/Event.h" | 31 #include "core/dom/Event.h" |
32 #include "core/page/SpeechInputResultList.h" | 32 #include "core/page/SpeechInputResultList.h" |
33 | 33 |
34 #include <wtf/PassRefPtr.h> | 34 #include "wtf/PassRefPtr.h" |
35 #include <wtf/RefCounted.h> | |
36 #include <wtf/Vector.h> | |
37 | 35 |
38 namespace WebCore { | 36 namespace WebCore { |
39 | 37 |
40 class SpeechInputEvent : public Event { | 38 class SpeechInputEvent : public Event { |
41 public: | 39 public: |
42 static PassRefPtr<SpeechInputEvent> create(); | 40 static PassRefPtr<SpeechInputEvent> create(); |
43 static PassRefPtr<SpeechInputEvent> create(const AtomicString& eventType, co
nst SpeechInputResultArray& results); | 41 static PassRefPtr<SpeechInputEvent> create(const AtomicString& eventType, co
nst SpeechInputResultArray& results); |
44 ~SpeechInputEvent(); | 42 ~SpeechInputEvent(); |
45 | 43 |
46 SpeechInputResultList* results() const { return m_results.get(); } | 44 SpeechInputResultList* results() const { return m_results.get(); } |
47 | 45 |
48 virtual const AtomicString& interfaceName() const; | 46 virtual const AtomicString& interfaceName() const; |
49 | 47 |
50 private: | 48 private: |
51 SpeechInputEvent(); | 49 SpeechInputEvent(); |
52 SpeechInputEvent(const AtomicString& eventType, const SpeechInputResultArray
& results); | 50 SpeechInputEvent(const AtomicString& eventType, const SpeechInputResultArray
& results); |
53 | 51 |
54 RefPtr<SpeechInputResultList> m_results; | 52 RefPtr<SpeechInputResultList> m_results; |
55 }; | 53 }; |
56 | 54 |
57 } // namespace WebCore | 55 } // namespace WebCore |
58 | 56 |
59 #endif // ENABLE(INPUT_SPEECH) | 57 #endif // ENABLE(INPUT_SPEECH) |
60 | 58 |
61 #endif // SpeechInputEvent_h | 59 #endif // SpeechInputEvent_h |
OLD | NEW |