Backed out changeset 2450366cf7ca (bug 1891629) for causing win msix mochitest failures
[gecko.git] / widget / windows / MediaKeysEventSourceFactory.cpp
blob525aab19c6339cb0b5f228d22e0a4e318ebe8594
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #include "MediaKeysEventSourceFactory.h"
6 #include "WindowsSMTCProvider.h"
8 namespace mozilla {
9 namespace widget {
11 mozilla::dom::MediaControlKeySource* CreateMediaControlKeySource() {
12 #ifndef __MINGW32__
13 return new WindowsSMTCProvider();
14 #else
15 return nullptr; // MinGW doesn't support the required Windows 8.1+ APIs
16 #endif
19 } // namespace widget
20 } // namespace mozilla