OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_CHROMEOS_MEDIA_MEDIA_PLAYER_EXTENSION_API_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_MEDIA_MEDIA_PLAYER_EXTENSION_API_H_ |
6 #define CHROME_BROWSER_CHROMEOS_MEDIA_MEDIA_PLAYER_EXTENSION_API_H_ | 6 #define CHROME_BROWSER_CHROMEOS_MEDIA_MEDIA_PLAYER_EXTENSION_API_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "chrome/browser/extensions/extension_function.h" | 13 #include "chrome/browser/extensions/extension_function.h" |
14 | 14 |
15 // Implements the chrome.mediaPlayerPrivate.play method. | 15 // Implements the chrome.mediaPlayerPrivate.play method. |
16 class PlayMediaplayerFunction : public SyncExtensionFunction { | 16 class PlayMediaplayerFunction : public SyncExtensionFunction { |
| 17 public: |
| 18 DECLARE_EXTENSION_FUNCTION_NAME("mediaPlayerPrivate.play"); |
| 19 |
17 protected: | 20 protected: |
| 21 virtual ~PlayMediaplayerFunction() {} |
| 22 |
18 // SyncExtensionFunction overrides. | 23 // SyncExtensionFunction overrides. |
19 virtual bool RunImpl() OVERRIDE; | 24 virtual bool RunImpl() OVERRIDE; |
20 DECLARE_EXTENSION_FUNCTION_NAME("mediaPlayerPrivate.play"); | |
21 }; | 25 }; |
22 | 26 |
23 // Implements the chrome.mediaPlayerPrivate.getPlaylist method. | 27 // Implements the chrome.mediaPlayerPrivate.getPlaylist method. |
24 class GetPlaylistMediaplayerFunction : public SyncExtensionFunction { | 28 class GetPlaylistMediaplayerFunction : public SyncExtensionFunction { |
| 29 public: |
| 30 DECLARE_EXTENSION_FUNCTION_NAME("mediaPlayerPrivate.getPlaylist"); |
| 31 |
25 protected: | 32 protected: |
| 33 virtual ~GetPlaylistMediaplayerFunction() {} |
| 34 |
26 // SyncExtensionFunction overrides. | 35 // SyncExtensionFunction overrides. |
27 virtual bool RunImpl() OVERRIDE; | 36 virtual bool RunImpl() OVERRIDE; |
28 DECLARE_EXTENSION_FUNCTION_NAME("mediaPlayerPrivate.getPlaylist"); | |
29 }; | 37 }; |
30 | 38 |
31 // Implements the chrome.mediaPlayerPrivate.setWindowHeight method. | 39 // Implements the chrome.mediaPlayerPrivate.setWindowHeight method. |
32 class SetWindowHeightMediaplayerFunction : public SyncExtensionFunction { | 40 class SetWindowHeightMediaplayerFunction : public SyncExtensionFunction { |
| 41 public: |
| 42 DECLARE_EXTENSION_FUNCTION_NAME("mediaPlayerPrivate.setWindowHeight"); |
| 43 |
33 protected: | 44 protected: |
| 45 virtual ~SetWindowHeightMediaplayerFunction() {} |
| 46 |
34 // SyncExtensionFunction overrides. | 47 // SyncExtensionFunction overrides. |
35 virtual bool RunImpl() OVERRIDE; | 48 virtual bool RunImpl() OVERRIDE; |
36 DECLARE_EXTENSION_FUNCTION_NAME("mediaPlayerPrivate.setWindowHeight"); | |
37 }; | 49 }; |
38 | 50 |
39 // Implements the chrome.mediaPlayerPrivate.closeWindow method. | 51 // Implements the chrome.mediaPlayerPrivate.closeWindow method. |
40 class CloseWindowMediaplayerFunction : public SyncExtensionFunction { | 52 class CloseWindowMediaplayerFunction : public SyncExtensionFunction { |
| 53 public: |
| 54 DECLARE_EXTENSION_FUNCTION_NAME("mediaPlayerPrivate.closeWindow"); |
| 55 |
41 protected: | 56 protected: |
| 57 virtual ~CloseWindowMediaplayerFunction() {} |
| 58 |
42 // SyncExtensionFunction overrides. | 59 // SyncExtensionFunction overrides. |
43 virtual bool RunImpl() OVERRIDE; | 60 virtual bool RunImpl() OVERRIDE; |
44 DECLARE_EXTENSION_FUNCTION_NAME("mediaPlayerPrivate.closeWindow"); | |
45 }; | 61 }; |
46 | 62 |
47 #endif // CHROME_BROWSER_CHROMEOS_MEDIA_MEDIA_PLAYER_EXTENSION_API_H_ | 63 #endif // CHROME_BROWSER_CHROMEOS_MEDIA_MEDIA_PLAYER_EXTENSION_API_H_ |
OLD | NEW |