| OLD | NEW |
| (Empty) |
| 1 /* | |
| 2 * Copyright 2011 The Native Client Authors. All rights reserved. | |
| 3 * Use of this source code is governed by a BSD-style license that can | |
| 4 * be found in the LICENSE file. | |
| 5 */ | |
| 6 | |
| 7 #ifndef NATIVE_CLIENT_SRC_TRUSTED_SEL_UNIVERASAL_MULTIMEDIA_HANDLER_H_ | |
| 8 #define NATIVE_CLIENT_SRC_TRUSTED_SEL_UNIVERASAL_MULTIMEDIA_HANDLER_H_ | |
| 9 | |
| 10 #include <string> | |
| 11 #include <vector> | |
| 12 | |
| 13 class NaClCommandLoop; | |
| 14 | |
| 15 // Log all PPAPI events to given file for later playback. | |
| 16 // This will take effect after HandlerSDLEventLoop is called. | |
| 17 // Note: the emitted file will contain non-standard PPAPI events | |
| 18 // for synchronization purposes. | |
| 19 void RecordPPAPIEvents(std::string filename); | |
| 20 | |
| 21 // Ignore user events and instead play back PPAPI events from the given file, | |
| 22 // which must have been generared via RecordPPAPIEvents() | |
| 23 // This will take effect after HandlerSDLEventLoop is called | |
| 24 void ReplayPPAPIEvents(std::string filename); | |
| 25 | |
| 26 | |
| 27 // initialize multimedia (SDL) subsystem | |
| 28 bool HandlerSDLInitialize(NaClCommandLoop* ncl, | |
| 29 const std::vector<std::string>& args); | |
| 30 | |
| 31 // start multimedia event loop | |
| 32 bool HandlerSDLEventLoop(NaClCommandLoop* ncl, | |
| 33 const std::vector<std::string>& args); | |
| 34 | |
| 35 | |
| 36 #endif /* NATIVE_CLIENT_SRC_TRUSTED_SEL_UNIVERASAL_MULTIMEDIA_HANDLER_H_ */ | |
| OLD | NEW |