OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Apple Inc. All rights reserved. | 2 * Copyright (C) 2013 Apple 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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. 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 15 matching lines...) Expand all Loading... |
26 #ifndef DOMWindowSpeechSynthesis_h | 26 #ifndef DOMWindowSpeechSynthesis_h |
27 #define DOMWindowSpeechSynthesis_h | 27 #define DOMWindowSpeechSynthesis_h |
28 | 28 |
29 #include "core/frame/DOMWindowProperty.h" | 29 #include "core/frame/DOMWindowProperty.h" |
30 #include "modules/speech/SpeechSynthesis.h" | 30 #include "modules/speech/SpeechSynthesis.h" |
31 #include "platform/Supplementable.h" | 31 #include "platform/Supplementable.h" |
32 #include "platform/heap/Handle.h" | 32 #include "platform/heap/Handle.h" |
33 | 33 |
34 namespace WebCore { | 34 namespace WebCore { |
35 | 35 |
36 class DOMWindow; | 36 class LocalDOMWindow; |
37 | 37 |
38 class DOMWindowSpeechSynthesis FINAL : public NoBaseWillBeGarbageCollectedFinali
zed<DOMWindowSpeechSynthesis>, public WillBeHeapSupplement<DOMWindow>, public DO
MWindowProperty { | 38 class DOMWindowSpeechSynthesis FINAL : public NoBaseWillBeGarbageCollectedFinali
zed<DOMWindowSpeechSynthesis>, public WillBeHeapSupplement<LocalDOMWindow>, publ
ic DOMWindowProperty { |
39 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DOMWindowSpeechSynthesis); | 39 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DOMWindowSpeechSynthesis); |
40 public: | 40 public: |
41 virtual ~DOMWindowSpeechSynthesis(); | 41 virtual ~DOMWindowSpeechSynthesis(); |
42 | 42 |
43 static SpeechSynthesis* speechSynthesis(DOMWindow&); | 43 static SpeechSynthesis* speechSynthesis(LocalDOMWindow&); |
44 static DOMWindowSpeechSynthesis& from(DOMWindow&); | 44 static DOMWindowSpeechSynthesis& from(LocalDOMWindow&); |
45 | 45 |
46 void trace(Visitor*); | 46 void trace(Visitor*); |
47 | 47 |
48 private: | 48 private: |
49 explicit DOMWindowSpeechSynthesis(DOMWindow&); | 49 explicit DOMWindowSpeechSynthesis(LocalDOMWindow&); |
50 | 50 |
51 SpeechSynthesis* speechSynthesis(); | 51 SpeechSynthesis* speechSynthesis(); |
52 static const char* supplementName(); | 52 static const char* supplementName(); |
53 | 53 |
54 PersistentWillBeMember<SpeechSynthesis> m_speechSynthesis; | 54 PersistentWillBeMember<SpeechSynthesis> m_speechSynthesis; |
55 }; | 55 }; |
56 | 56 |
57 } // namespace WebCore | 57 } // namespace WebCore |
58 | 58 |
59 #endif // DOMWindowSpeechSynthesis_h | 59 #endif // DOMWindowSpeechSynthesis_h |
OLD | NEW |