Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / modules / speech / SpeechGrammar.h
index 32b2f40..fb3cfe5 100644 (file)
 #ifndef SpeechGrammar_h
 #define SpeechGrammar_h
 
-#include "bindings/v8/ScriptWrappable.h"
+#include "bindings/core/v8/ScriptWrappable.h"
 #include "platform/heap/Handle.h"
 #include "platform/weborigin/KURL.h"
-#include "wtf/RefCounted.h"
 #include "wtf/text/WTFString.h"
 
-namespace WebCore {
+namespace blink {
 
 class ExecutionContext;
 
-class SpeechGrammar : public RefCountedWillBeGarbageCollectedFinalized<SpeechGrammar>, public ScriptWrappable {
+class SpeechGrammar FINAL : public GarbageCollectedFinalized<SpeechGrammar>, public ScriptWrappable {
+    DEFINE_WRAPPERTYPEINFO();
 public:
-    static PassRefPtrWillBeRawPtr<SpeechGrammar> create(); // FIXME: The spec is not clear on what the constructor should look like.
-    static PassRefPtrWillBeRawPtr<SpeechGrammar> create(const KURL& src, double weight);
+    static SpeechGrammar* create(); // FIXME: The spec is not clear on what the constructor should look like.
+    static SpeechGrammar* create(const KURL& src, double weight);
 
     const KURL& src(ExecutionContext*) const { return m_src; }
     const KURL& src() const { return m_src; }
@@ -58,6 +58,6 @@ private:
     double m_weight;
 };
 
-} // namespace WebCore
+} // namespace blink
 
 #endif // SpeechGrammar_h