| Index: Source/modules/webmidi/MIDIInput.cpp
|
| diff --git a/Source/core/page/RuntimeEnabledFeaturesCustom.cpp b/Source/modules/webmidi/MIDIInput.cpp
|
| similarity index 76%
|
| copy from Source/core/page/RuntimeEnabledFeaturesCustom.cpp
|
| copy to Source/modules/webmidi/MIDIInput.cpp
|
| index 2df390c281f06a8f6ea2157ba8be109616028eb0..36a1edcddf6cab63d95f97ff0dcf91ce7a219208 100644
|
| --- a/Source/core/page/RuntimeEnabledFeaturesCustom.cpp
|
| +++ b/Source/modules/webmidi/MIDIInput.cpp
|
| @@ -29,21 +29,18 @@
|
| */
|
|
|
| #include "config.h"
|
| -#include "RuntimeEnabledFeatures.h"
|
| -
|
| -#include "core/platform/graphics/MediaPlayer.h"
|
| -#include "core/workers/SharedWorkerRepository.h"
|
| +#include "modules/webmidi/MIDIInput.h"
|
|
|
| namespace WebCore {
|
|
|
| -bool RuntimeEnabledFeatures::mediaEnabled()
|
| +PassRefPtr<MIDIInput> MIDIInput::create(ScriptExecutionContext* context, const String& id, const String& manufacturer, const String& name, const String& version)
|
| {
|
| - return MediaPlayer::isAvailable();
|
| + return adoptRef(new MIDIInput(context, id, manufacturer, name, version));
|
| }
|
|
|
| -bool RuntimeEnabledFeatures::sharedWorkerEnabled()
|
| +MIDIInput::MIDIInput(ScriptExecutionContext* context, const String& id, const String& manufacturer, const String& name, const String& version)
|
| + : MIDIPort(context, id, manufacturer, name, MIDIPortTypeInput, version)
|
| {
|
| - return SharedWorkerRepository::isAvailable();
|
| }
|
|
|
| } // namespace WebCore
|
|
|