1 // Copyright 2018 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "ui/base/accelerators/media_keys_listener.h"
6 
7 namespace ui {
8 
9 MediaKeysListener::Delegate::~Delegate() = default;
10 
11 MediaKeysListener::~MediaKeysListener() = default;
12 
13 // static
IsMediaKeycode(KeyboardCode key_code)14 bool MediaKeysListener::IsMediaKeycode(KeyboardCode key_code) {
15   return key_code == VKEY_MEDIA_PLAY_PAUSE || key_code == VKEY_MEDIA_STOP ||
16          key_code == VKEY_MEDIA_PREV_TRACK || key_code == VKEY_MEDIA_NEXT_TRACK;
17 }
18 
19 }  // namespace ui
20