OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 class MIDIOutput final : public MIDIPort { | 42 class MIDIOutput final : public MIDIPort { |
43 DEFINE_WRAPPERTYPEINFO(); | 43 DEFINE_WRAPPERTYPEINFO(); |
44 | 44 |
45 public: | 45 public: |
46 static MIDIOutput* create(MIDIAccess*, | 46 static MIDIOutput* create(MIDIAccess*, |
47 unsigned portIndex, | 47 unsigned portIndex, |
48 const String& id, | 48 const String& id, |
49 const String& manufacturer, | 49 const String& manufacturer, |
50 const String& name, | 50 const String& name, |
51 const String& version, | 51 const String& version, |
52 MIDIAccessor::MIDIPortState); | 52 midi::mojom::PortState); |
53 ~MIDIOutput() override; | 53 ~MIDIOutput() override; |
54 | 54 |
55 void send(DOMUint8Array*, double timestamp, ExceptionState&); | 55 void send(DOMUint8Array*, double timestamp, ExceptionState&); |
56 void send(Vector<unsigned>, double timestamp, ExceptionState&); | 56 void send(Vector<unsigned>, double timestamp, ExceptionState&); |
57 | 57 |
58 // send() without optional |timestamp|. | 58 // send() without optional |timestamp|. |
59 void send(DOMUint8Array*, ExceptionState&); | 59 void send(DOMUint8Array*, ExceptionState&); |
60 void send(Vector<unsigned>, ExceptionState&); | 60 void send(Vector<unsigned>, ExceptionState&); |
61 | 61 |
62 DECLARE_VIRTUAL_TRACE(); | 62 DECLARE_VIRTUAL_TRACE(); |
63 | 63 |
64 private: | 64 private: |
65 MIDIOutput(MIDIAccess*, | 65 MIDIOutput(MIDIAccess*, |
66 unsigned portIndex, | 66 unsigned portIndex, |
67 const String& id, | 67 const String& id, |
68 const String& manufacturer, | 68 const String& manufacturer, |
69 const String& name, | 69 const String& name, |
70 const String& version, | 70 const String& version, |
71 MIDIAccessor::MIDIPortState); | 71 midi::mojom::PortState); |
72 | 72 |
73 unsigned m_portIndex; | 73 unsigned m_portIndex; |
74 }; | 74 }; |
75 | 75 |
76 } // namespace blink | 76 } // namespace blink |
77 | 77 |
78 #endif // MIDIOutput_h | 78 #endif // MIDIOutput_h |
OLD | NEW |