OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_MEDIAPLAYER_PRIVATE_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MEDIAPLAYER_PRIVATE_API_H_ |
| 7 #pragma once |
| 8 |
| 9 #include <map> |
| 10 #include <string> |
| 11 #include <vector> |
| 12 |
| 13 #include "chrome/browser/extensions/extension_function.h" |
| 14 |
| 15 // Implements the chrome.mediaplayerPrivate.playAt method. |
| 16 class PlayAtMediaplayerFunction |
| 17 : public SyncExtensionFunction { |
| 18 protected: |
| 19 // AsyncExtensionFunction overrides. |
| 20 virtual bool RunImpl() OVERRIDE; |
| 21 DECLARE_EXTENSION_FUNCTION_NAME( |
| 22 "mediaPlayerPrivate.playAt"); |
| 23 }; |
| 24 |
| 25 // Implements the chrome.mediaPlayerPrivate.getCurrentPlaylist method. |
| 26 class GetPlaylistMediaplayerFunction : public SyncExtensionFunction { |
| 27 protected: |
| 28 // AsyncExtensionFunction overrides. |
| 29 virtual bool RunImpl() OVERRIDE; |
| 30 DECLARE_EXTENSION_FUNCTION_NAME("mediaPlayerPrivate.getPlaylist"); |
| 31 }; |
| 32 |
| 33 // Implements the chrome.mediaPlayerPrivate.setPlaybackError method. |
| 34 class SetPlaybackErrorMediaplayerFunction : public SyncExtensionFunction { |
| 35 protected: |
| 36 // AsyncExtensionFunction overrides. |
| 37 virtual bool RunImpl() OVERRIDE; |
| 38 DECLARE_EXTENSION_FUNCTION_NAME("mediaPlayerPrivate.setPlaybackError"); |
| 39 }; |
| 40 |
| 41 // Implements the chrome.mediaPlayerPrivate.togglePlaylist method. |
| 42 class TogglePlaylistPanelMediaplayerFunction : public SyncExtensionFunction { |
| 43 protected: |
| 44 // AsyncExtensionFunction overrides. |
| 45 virtual bool RunImpl() OVERRIDE; |
| 46 DECLARE_EXTENSION_FUNCTION_NAME("mediaPlayerPrivate.togglePlaylistPanel"); |
| 47 }; |
| 48 |
| 49 // Implements the chrome.mediaPlayerPrivate.toggleFullscreen method. |
| 50 class ToggleFullscreenMediaplayerFunction : public SyncExtensionFunction { |
| 51 protected: |
| 52 // AsyncExtensionFunction overrides. |
| 53 virtual bool RunImpl() OVERRIDE; |
| 54 DECLARE_EXTENSION_FUNCTION_NAME("mediaPlayerPrivate.toggleFullscreen"); |
| 55 }; |
| 56 |
| 57 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MEDIAPLAYER_PRIVATE_API_H_ |
OLD | NEW |