| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "media/midi/midi_manager_winrt.h" | 5 #include "media/midi/midi_manager_winrt.h" |
| 6 | 6 |
| 7 // TODO(shaochuan): Remove this once clang supports uuid syntax in <robuffer.h>. | 7 // TODO(shaochuan): Remove this once clang supports uuid syntax in <robuffer.h>. |
| 8 // https://reviews.llvm.org/D23895 | 8 // https://reviews.llvm.org/D23895 |
| 9 namespace Windows { | 9 namespace Windows { |
| 10 namespace Storage { | 10 namespace Storage { |
| 11 namespace Streams { | 11 namespace Streams { |
| 12 #pragma warning(disable : 4467) |
| 12 struct __declspec(uuid("905a0fef-bc53-11df-8c49-001e4fc686da")) | 13 struct __declspec(uuid("905a0fef-bc53-11df-8c49-001e4fc686da")) |
| 13 IBufferByteAccess; | 14 IBufferByteAccess; |
| 14 } | 15 } |
| 15 } | 16 } |
| 16 } | 17 } |
| 17 | 18 |
| 18 #include <comdef.h> | 19 #include <comdef.h> |
| 19 #include <robuffer.h> | 20 #include <robuffer.h> |
| 20 #include <windows.devices.enumeration.h> | 21 #include <windows.devices.enumeration.h> |
| 21 #include <windows.devices.midi.h> | 22 #include <windows.devices.midi.h> |
| (...skipping 929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 951 void MidiManagerWinrt::OnPortManagerReady() { | 952 void MidiManagerWinrt::OnPortManagerReady() { |
| 952 DCHECK(com_thread_checker_->CalledOnValidThread()); | 953 DCHECK(com_thread_checker_->CalledOnValidThread()); |
| 953 DCHECK(port_manager_ready_count_ < 2); | 954 DCHECK(port_manager_ready_count_ < 2); |
| 954 | 955 |
| 955 if (++port_manager_ready_count_ == 2) | 956 if (++port_manager_ready_count_ == 2) |
| 956 CompleteInitialization(Result::OK); | 957 CompleteInitialization(Result::OK); |
| 957 } | 958 } |
| 958 | 959 |
| 959 } // namespace midi | 960 } // namespace midi |
| 960 } // namespace media | 961 } // namespace media |
| OLD | NEW |