Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / modules / speech / SpeechSynthesisVoice.h
index 7e57601..f124a8e 100644 (file)
 #ifndef SpeechSynthesisVoice_h
 #define SpeechSynthesisVoice_h
 
-#include "bindings/v8/ScriptWrappable.h"
-#include "core/platform/PlatformSpeechSynthesisVoice.h"
-#include "wtf/PassRefPtr.h"
-#include "wtf/RefCounted.h"
+#include "bindings/core/v8/ScriptWrappable.h"
+#include "platform/heap/Handle.h"
+#include "platform/speech/PlatformSpeechSynthesisVoice.h"
 #include "wtf/text/WTFString.h"
 
-namespace WebCore {
+namespace blink {
 
-class SpeechSynthesisVoice FINAL : public ScriptWrappable, public RefCounted<SpeechSynthesisVoice> {
+class SpeechSynthesisVoice FINAL : public GarbageCollected<SpeechSynthesisVoice>, public ScriptWrappable {
+    DEFINE_WRAPPERTYPEINFO();
 public:
-    static PassRefPtr<SpeechSynthesisVoice> create(PassRefPtr<PlatformSpeechSynthesisVoice>);
+    static SpeechSynthesisVoice* create(PlatformSpeechSynthesisVoice*);
 
     const String& voiceURI() const { return m_platformVoice->voiceURI(); }
     const String& name() const { return m_platformVoice->name(); }
@@ -44,14 +44,16 @@ public:
     bool localService() const { return m_platformVoice->localService(); }
     bool isDefault() const { return m_platformVoice->isDefault(); }
 
-    PlatformSpeechSynthesisVoice* platformVoice() const { return m_platformVoice.get(); }
+    PlatformSpeechSynthesisVoice* platformVoice() const { return m_platformVoice; }
+
+    void trace(Visitor*);
 
 private:
-    explicit SpeechSynthesisVoice(PassRefPtr<PlatformSpeechSynthesisVoice>);
+    explicit SpeechSynthesisVoice(PlatformSpeechSynthesisVoice*);
 
-    RefPtr<PlatformSpeechSynthesisVoice> m_platformVoice;
+    Member<PlatformSpeechSynthesisVoice> m_platformVoice;
 };
 
-} // namespace WebCore
+} // namespace blink
 
 #endif // SpeechSynthesisVoice_h