| 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 "build/build_config.h" | 5 #include "build/build_config.h" |
| 6 #include "media/midi/midi_switches.h" | 6 #include "media/midi/midi_switches.h" |
| 7 | 7 |
| 8 namespace switches { | |
| 9 | |
| 10 #if defined(OS_ANDROID) | |
| 11 // Use Android Midi API for WebMIDI | |
| 12 const char kUseAndroidMidiApi[] = "use-android-midi-api"; | |
| 13 #endif | |
| 14 | |
| 15 } // namespace switches | |
| 16 | |
| 17 namespace midi { | 8 namespace midi { |
| 18 namespace features { | 9 namespace features { |
| 19 | 10 |
| 11 #if defined(OS_ANDROID) |
| 12 const base::Feature kMidiManagerAndroid{"MidiManagerAndroid", |
| 13 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 14 #endif |
| 15 |
| 20 #if defined(OS_WIN) | 16 #if defined(OS_WIN) |
| 21 const base::Feature kMidiManagerWinrt{"MidiManagerWinrt", | 17 const base::Feature kMidiManagerWinrt{"MidiManagerWinrt", |
| 22 base::FEATURE_DISABLED_BY_DEFAULT}; | 18 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 23 #endif | 19 #endif |
| 24 | 20 |
| 25 } // namespace features | 21 } // namespace features |
| 26 } // namespace midi | 22 } // namespace midi |
| OLD | NEW |