Chromium Code Reviews| 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.setPlaylistPosition method. | |
| 16 class SetPlaylistPositionAndPlayMediaplayerFunction | |
| 17 : public AsyncExtensionFunction { | |
| 18 protected: | |
| 19 // AsyncExtensionFunction overrides. | |
| 20 virtual bool RunImpl() OVERRIDE; | |
| 21 DECLARE_EXTENSION_FUNCTION_NAME( | |
| 22 "mediaPlayerPrivate.setPlaylistPositionAndPlay"); | |
| 23 }; | |
| 24 | |
| 25 // Implements the chrome.mediaPlayerPrivate.getCurrentPlaylist method. | |
| 26 class GetPlaylistMediaplayerFunction : public AsyncExtensionFunction { | |
|
zel
2011/05/24 17:54:25
None of these methods needs to be async (derived f
SeRya
2011/05/25 14:23:49
Done.
| |
| 27 protected: | |
| 28 // AsyncExtensionFunction overrides. | |
| 29 virtual bool RunImpl() OVERRIDE; | |
| 30 DECLARE_EXTENSION_FUNCTION_NAME("mediaPlayerPrivate.getPlaylist"); | |
| 31 }; | |
| 32 | |
| 33 // Implements the chrome.mediaPlayerPrivate.playbackError method. | |
| 34 class PlaybackErrorMediaplayerFunction : public AsyncExtensionFunction { | |
| 35 protected: | |
| 36 // AsyncExtensionFunction overrides. | |
| 37 virtual bool RunImpl() OVERRIDE; | |
| 38 DECLARE_EXTENSION_FUNCTION_NAME("mediaPlayerPrivate.playbackError"); | |
|
zel
2011/05/24 17:54:25
rename this to mediaPlayerPrivate.setPlaybackError
SeRya
2011/05/25 14:23:49
Done.
| |
| 39 }; | |
| 40 | |
| 41 // Implements the chrome.mediaPlayerPrivate.togglePlaylist method. | |
| 42 class TogglePlaylistPanelMediaplayerFunction : public AsyncExtensionFunction { | |
| 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 AsyncExtensionFunction { | |
| 51 protected: | |
| 52 // AsyncExtensionFunction overrides. | |
| 53 virtual bool RunImpl() OVERRIDE; | |
| 54 DECLARE_EXTENSION_FUNCTION_NAME("mediaPlayerPrivate.toggleFullscreen"); | |
| 55 }; | |
| 56 | |
| 57 // Implements the chrome.mediaPlayerPrivate.showPlaylist method. | |
| 58 class ShowPlaylistPanelMediaplayerFunction : public AsyncExtensionFunction { | |
| 59 protected: | |
| 60 // AsyncExtensionFunction overrides. | |
| 61 virtual bool RunImpl() OVERRIDE; | |
| 62 DECLARE_EXTENSION_FUNCTION_NAME("mediaPlayerPrivate.showPlaylistPanel"); | |
| 63 }; | |
| 64 | |
| 65 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MEDIAPLAYER_PRIVATE_API_H_ | |
| OLD | NEW |