Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2422)

Unified Diff: native_client_sdk/src/libraries/ppapi_simple/ps_event.cc

Issue 914983003: [NaCl SDK] Switch ppapi_simple to C library (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tty output bug Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/libraries/ppapi_simple/ps_event.cc
diff --git a/native_client_sdk/src/libraries/ppapi_simple/ps_event.cc b/native_client_sdk/src/libraries/ppapi_simple/ps_event.cc
deleted file mode 100644
index daecb4062a97c919dc3ec837ee7f9fc91f48b9f4..0000000000000000000000000000000000000000
--- a/native_client_sdk/src/libraries/ppapi_simple/ps_event.cc
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright (c) 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ppapi/c/pp_instance.h"
-#include "ppapi/c/pp_module.h"
-
-#include "ppapi_simple/ps_event.h"
-#include "ppapi_simple/ps_instance.h"
-#include "ppapi_simple/ps_main.h"
-
-
-void PSEventPost(PSEventType type) {
- PSInstance::GetInstance()->PostEvent(type);
-}
-
-void PSEventPostBool(PSEventType type, PP_Bool state) {
- PSInstance::GetInstance()->PostEvent(type, state);
-}
-
-void PSEventPostVar(PSEventType type, struct PP_Var var) {
- PSInstance::GetInstance()->PostEvent(type, var);
-}
-
-void PSEventPostResource(PSEventType type, PP_Resource resource) {
- PSInstance::GetInstance()->PostEvent(type, resource);
-}
-
-PSEvent* PSEventTryAcquire() {
- return PSInstance::GetInstance()->TryAcquireEvent();
-}
-
-PSEvent* PSEventWaitAcquire() {
- return PSInstance::GetInstance()->WaitAcquireEvent();
-}
-
-void PSEventRelease(PSEvent* event) {
- PSInstance::GetInstance()->ReleaseEvent(event);
-}
-
-void PSEventSetFilter(PSEventTypeMask filter) {
- PSInstance::GetInstance()->SetEnabledEvents(filter);
-}
-
« no previous file with comments | « native_client_sdk/src/libraries/ppapi_simple/ps_event.c ('k') | native_client_sdk/src/libraries/ppapi_simple/ps_instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698