forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WebMIDI] Add "use-android-midi-api" flag for Android M+ devices.
For experimental support for Android Midi API which is introduced in Android M, this CL adds a chrome flag. BUG=486584 Review URL: https://codereview.chromium.org/1276233005 Cr-Commit-Position: refs/heads/master@{#349360}
- Loading branch information
1 parent
fffc75b
commit bbea627
Showing
10 changed files
with
56 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Copyright 2015 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#include "media/midi/midi_switches.h" | ||
|
||
namespace switches { | ||
|
||
#if defined(OS_ANDROID) | ||
// Use Android Midi API for WebMIDI | ||
const char kUseAndroidMidiApi[] = "use-android-midi-api"; | ||
#endif | ||
|
||
} // namespace switches |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Copyright 2015 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
// Defines all the "midi" command-line switches. | ||
|
||
#ifndef MEDIA_MIDI_MIDI_SWITCHES_H_ | ||
#define MEDIA_MIDI_MIDI_SWITCHES_H_ | ||
|
||
#include "build/build_config.h" | ||
#include "media/midi/midi_export.h" | ||
|
||
namespace switches { | ||
|
||
#if defined(OS_ANDROID) | ||
MIDI_EXPORT extern const char kUseAndroidMidiApi[]; | ||
#endif | ||
|
||
} // namespace switches | ||
|
||
#endif // MEDIA_MIDI_MIDI_SWITCHES_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters