1 // Copyright (c) 2011 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.
5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_MEDIA_PLAYER_EVENT_ROUTER_H_
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_MEDIA_PLAYER_EVENT_ROUTER_H_
8 #include "base/basictypes.h"
12 namespace extensions {
14 // Event router class for events related to Mediaplayer.
15 class MediaPlayerEventRouter {
17 explicit MediaPlayerEventRouter(Profile* profile);
18 virtual ~MediaPlayerEventRouter();
20 // Send notification that next-track shortcut key was pressed.
21 void NotifyNextTrack();
23 // Send notification that previous-track shortcut key was pressed.
24 void NotifyPrevTrack();
26 // Send notification that play/pause shortcut key was pressed.
27 void NotifyTogglePlayState();
32 DISALLOW_COPY_AND_ASSIGN(MediaPlayerEventRouter);
35 } // namespace extensions
37 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_MEDIA_PLAYER_EVENT_ROUTER_H_