| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 MIDIController::MIDIController(PassOwnPtr<MIDIClient> client) | 43 MIDIController::MIDIController(PassOwnPtr<MIDIClient> client) |
| 44 : m_client(client) | 44 : m_client(client) |
| 45 { | 45 { |
| 46 ASSERT(m_client); | 46 ASSERT(m_client); |
| 47 } | 47 } |
| 48 | 48 |
| 49 MIDIController::~MIDIController() | 49 MIDIController::~MIDIController() |
| 50 { | 50 { |
| 51 } | 51 } |
| 52 | 52 |
| 53 RawPtr<MIDIController> MIDIController::create(PassOwnPtr<MIDIClient> client) | 53 MIDIController* MIDIController::create(PassOwnPtr<MIDIClient> client) |
| 54 { | 54 { |
| 55 return new MIDIController(client); | 55 return new MIDIController(client); |
| 56 } | 56 } |
| 57 | 57 |
| 58 void MIDIController::requestPermission(MIDIAccessInitializer* initializer, const
MIDIOptions& options) | 58 void MIDIController::requestPermission(MIDIAccessInitializer* initializer, const
MIDIOptions& options) |
| 59 { | 59 { |
| 60 m_client->requestPermission(initializer, options); | 60 m_client->requestPermission(initializer, options); |
| 61 } | 61 } |
| 62 | 62 |
| 63 void MIDIController::cancelPermissionRequest(MIDIAccessInitializer* initializer) | 63 void MIDIController::cancelPermissionRequest(MIDIAccessInitializer* initializer) |
| 64 { | 64 { |
| 65 m_client->cancelPermissionRequest(initializer); | 65 m_client->cancelPermissionRequest(initializer); |
| 66 } | 66 } |
| 67 | 67 |
| 68 void provideMIDITo(LocalFrame& frame, PassOwnPtr<MIDIClient> client) | 68 void provideMIDITo(LocalFrame& frame, PassOwnPtr<MIDIClient> client) |
| 69 { | 69 { |
| 70 MIDIController::provideTo(frame, MIDIController::supplementName(), MIDIContr
oller::create(client)); | 70 MIDIController::provideTo(frame, MIDIController::supplementName(), MIDIContr
oller::create(client)); |
| 71 } | 71 } |
| 72 | 72 |
| 73 } // namespace blink | 73 } // namespace blink |
| OLD | NEW |