Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: chrome/browser/chromeos/media/media_player_extension_api.h

Issue 11638024: Make MediaPlayerEventRouter a PKS to decouple it from ExtensionService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_CHROMEOS_MEDIA_MEDIA_PLAYER_EXTENSION_API_H_
6 #define CHROME_BROWSER_CHROMEOS_MEDIA_MEDIA_PLAYER_EXTENSION_API_H_
7
8 #include <map>
9 #include <string>
10 #include <vector>
11
12 #include "chrome/browser/extensions/extension_function.h"
13
14 // Implements the chrome.mediaPlayerPrivate.play method.
15 class PlayMediaplayerFunction : public SyncExtensionFunction {
16 public:
17 DECLARE_EXTENSION_FUNCTION_NAME("mediaPlayerPrivate.play");
18
19 protected:
20 virtual ~PlayMediaplayerFunction() {}
21
22 // SyncExtensionFunction overrides.
23 virtual bool RunImpl() OVERRIDE;
24 };
25
26 // Implements the chrome.mediaPlayerPrivate.getPlaylist method.
27 class GetPlaylistMediaplayerFunction : public SyncExtensionFunction {
28 public:
29 DECLARE_EXTENSION_FUNCTION_NAME("mediaPlayerPrivate.getPlaylist");
30
31 protected:
32 virtual ~GetPlaylistMediaplayerFunction() {}
33
34 // SyncExtensionFunction overrides.
35 virtual bool RunImpl() OVERRIDE;
36 };
37
38 // Implements the chrome.mediaPlayerPrivate.setWindowHeight method.
39 class SetWindowHeightMediaplayerFunction : public SyncExtensionFunction {
40 public:
41 DECLARE_EXTENSION_FUNCTION_NAME("mediaPlayerPrivate.setWindowHeight");
42
43 protected:
44 virtual ~SetWindowHeightMediaplayerFunction() {}
45
46 // SyncExtensionFunction overrides.
47 virtual bool RunImpl() OVERRIDE;
48 };
49
50 // Implements the chrome.mediaPlayerPrivate.closeWindow method.
51 class CloseWindowMediaplayerFunction : public SyncExtensionFunction {
52 public:
53 DECLARE_EXTENSION_FUNCTION_NAME("mediaPlayerPrivate.closeWindow");
54
55 protected:
56 virtual ~CloseWindowMediaplayerFunction() {}
57
58 // SyncExtensionFunction overrides.
59 virtual bool RunImpl() OVERRIDE;
60 };
61
62 #endif // CHROME_BROWSER_CHROMEOS_MEDIA_MEDIA_PLAYER_EXTENSION_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698