| OLD | NEW |
| (Empty) | |
| 1 /* Copyright (c) 2013 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 |
| 6 #include "ppapi/c/pp_instance.h" |
| 7 #include "ppapi/c/pp_module.h" |
| 8 |
| 9 #include "ppapi_simple/ps_event.h" |
| 10 #include "ppapi_simple/ps_instance.h" |
| 11 #include "ppapi_simple/ps_main.h" |
| 12 |
| 13 |
| 14 void PSEventPost(PSEventType type) { |
| 15 PSInstance::GetInstance()->PostEvent(type); |
| 16 } |
| 17 |
| 18 void PSEventPostBool(PSEventType type, PP_Bool state) { |
| 19 PSInstance::GetInstance()->PostEvent(type, state); |
| 20 } |
| 21 |
| 22 void PSEventPostVar(PSEventType type, struct PP_Var var) { |
| 23 PSInstance::GetInstance()->PostEvent(type, var); |
| 24 } |
| 25 |
| 26 void PSEventPostResource(PSEventType type, PP_Resource resource) { |
| 27 PSInstance::GetInstance()->PostEvent(type, resource); |
| 28 } |
| 29 |
| 30 PSEvent* PSEventTryAcquire() { |
| 31 return PSInstance::GetInstance()->TryAcquireEvent(); |
| 32 } |
| 33 |
| 34 PSEvent* PSEventWaitAcquire() { |
| 35 return PSInstance::GetInstance()->WaitAcquireEvent(); |
| 36 } |
| 37 |
| 38 void PSEventRelease(PSEvent* event) { |
| 39 PSInstance::GetInstance()->ReleaseEvent(event); |
| 40 } |
| 41 |
| 42 void PSEventSetFilter(PSEventTypeMask filter) { |
| 43 PSInstance::GetInstance()->SetEnabledEvents(filter); |
| 44 } |
| 45 |
| OLD | NEW |