| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "modules/audio_output_devices/AudioOutputDeviceClient.h" | 5 #include "modules/audio_output_devices/AudioOutputDeviceClient.h" |
| 6 | 6 |
| 7 #include "core/dom/Document.h" | 7 #include "core/dom/Document.h" |
| 8 #include "core/dom/ExecutionContext.h" | 8 #include "core/dom/ExecutionContext.h" |
| 9 #include "core/frame/LocalFrame.h" | 9 #include "core/frame/LocalFrame.h" |
| 10 | 10 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 return nullptr; | 25 return nullptr; |
| 26 | 26 |
| 27 return static_cast<AudioOutputDeviceClient*>(Supplement<LocalFrame>::from(do
cument->frame(), supplementName())); | 27 return static_cast<AudioOutputDeviceClient*>(Supplement<LocalFrame>::from(do
cument->frame(), supplementName())); |
| 28 } | 28 } |
| 29 | 29 |
| 30 void provideAudioOutputDeviceClientTo(LocalFrame& frame, AudioOutputDeviceClient
* client) | 30 void provideAudioOutputDeviceClientTo(LocalFrame& frame, AudioOutputDeviceClient
* client) |
| 31 { | 31 { |
| 32 frame.provideSupplement(AudioOutputDeviceClient::supplementName(), client); | 32 frame.provideSupplement(AudioOutputDeviceClient::supplementName(), client); |
| 33 } | 33 } |
| 34 | 34 |
| 35 DEFINE_TRACE(AudioOutputDeviceClient) |
| 36 { |
| 37 Supplement<LocalFrame>::trace(visitor); |
| 38 } |
| 39 |
| 35 } // namespace blink | 40 } // namespace blink |
| OLD | NEW |