commit | 6db83a6a677a89aa8ad568d04f6771a9f6ba1a28 | [log] [tgz] |
---|---|---|
author | Tommy Steimel <[email protected]> | Mon Feb 25 22:50:54 2019 |
committer | Commit Bot <[email protected]> | Mon Feb 25 22:50:54 2019 |
tree | 7ad3d7e1d3a6d7aecb218617936b5ead25e81101 | |
parent | 9bfa655cc7afb2cb0c8222736703f7f2e3e04eae [diff] [blame] |
[Global Media Controls] Use MPRemoteCommandCenter to receive key events This CL adds a new component to interface with MPRemoteCommandCenter: https://developer.apple.com/documentation/mediaplayer/mpremotecommandcenter?language=objc This is used to receive media key presses instead of using an event tap so that we avoid an issue where the OS prompts the user for extra privileges when the event tap is created. Bug: 930180 Change-Id: I3877499a49529c88427590cc013700b2e5e985ee Reviewed-on: https://chromium-review.googlesource.com/c/1480702 Reviewed-by: Scott Violet <[email protected]> Reviewed-by: Elly Fong-Jones <[email protected]> Commit-Queue: Tommy Steimel <[email protected]> Cr-Commit-Position: refs/heads/master@{#635295}
diff --git a/content/browser/BUILD.gn b/content/browser/BUILD.gn index 765c9d89..d45a2eb 100644 --- a/content/browser/BUILD.gn +++ b/content/browser/BUILD.gn
@@ -2433,6 +2433,7 @@ "//media", "//third_party/mozilla", "//ui/accelerated_widget_mac", + "//ui/base/now_playing", ] libs += [ "Carbon.framework",