Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / modules / webmidi / MIDIOutput.h
index 8d1c451..dbf18ae 100644 (file)
 #ifndef MIDIOutput_h
 #define MIDIOutput_h
 
+#include "core/dom/DOMTypedArray.h"
 #include "modules/webmidi/MIDIPort.h"
-#include "wtf/Uint8Array.h"
 
 namespace blink {
 
 class ExceptionState;
 class MIDIAccess;
 
-class MIDIOutput FINAL : public MIDIPort {
+class MIDIOutput final : public MIDIPort {
     DEFINE_WRAPPERTYPEINFO();
 public:
-    static MIDIOutput* create(MIDIAccess*, unsigned portIndex, const String& id, const String& manufacturer, const String& name, const String& version);
+    static MIDIOutput* create(MIDIAccess*, unsigned portIndex, const String& id, const String& manufacturer, const String& name, const String& version, bool isActive);
     virtual ~MIDIOutput();
 
+    void send(DOMUint8Array*, double timestamp, ExceptionState&);
     void send(Uint8Array*, double timestamp, ExceptionState&);
     void send(Vector<unsigned>, double timestamp, ExceptionState&);
 
     // send() without optional |timestamp|.
-    void send(Uint8Array*, ExceptionState&);
+    void send(DOMUint8Array*, ExceptionState&);
     void send(Vector<unsigned>, ExceptionState&);
 
-    virtual void trace(Visitor*) OVERRIDE;
+    virtual void trace(Visitor*) override;
 
 private:
-    MIDIOutput(MIDIAccess*, unsigned portIndex, const String& id, const String& manufacturer, const String& name, const String& version);
+    MIDIOutput(MIDIAccess*, unsigned portIndex, const String& id, const String& manufacturer, const String& name, const String& version, bool isActive);
 
     unsigned m_portIndex;
 };