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

Unified Diff: native_client_sdk/src/libraries/ppapi_simple/ps_interface.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_interface.cc
diff --git a/native_client_sdk/src/libraries/ppapi_simple/ps_interface.cc b/native_client_sdk/src/libraries/ppapi_simple/ps_interface.cc
deleted file mode 100644
index 43988e2996c9a9ec37f11f1dc9123d4750d82be2..0000000000000000000000000000000000000000
--- a/native_client_sdk/src/libraries/ppapi_simple/ps_interface.cc
+++ /dev/null
@@ -1,64 +0,0 @@
-// Copyright 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_simple/ps.h"
-#include "ppapi_simple/ps_interface.h"
-
-#define DEFINE_INTERFACE_FUNC(Name) \
- static const PPB_##Name* s_##Name; \
- const PPB_##Name* PSInterface##Name() { return s_##Name; }
-
-DEFINE_INTERFACE_FUNC(Audio)
-DEFINE_INTERFACE_FUNC(AudioConfig)
-DEFINE_INTERFACE_FUNC(Console)
-DEFINE_INTERFACE_FUNC(Core)
-DEFINE_INTERFACE_FUNC(FileIO)
-DEFINE_INTERFACE_FUNC(FileRef)
-DEFINE_INTERFACE_FUNC(FileSystem)
-DEFINE_INTERFACE_FUNC(Fullscreen)
-DEFINE_INTERFACE_FUNC(Gamepad)
-DEFINE_INTERFACE_FUNC(Graphics2D)
-DEFINE_INTERFACE_FUNC(Graphics3D)
-DEFINE_INTERFACE_FUNC(ImageData)
-DEFINE_INTERFACE_FUNC(Instance)
-DEFINE_INTERFACE_FUNC(Messaging)
-DEFINE_INTERFACE_FUNC(MessageLoop)
-DEFINE_INTERFACE_FUNC(MouseCursor)
-DEFINE_INTERFACE_FUNC(URLLoader)
-DEFINE_INTERFACE_FUNC(URLRequestInfo)
-DEFINE_INTERFACE_FUNC(URLResponseInfo)
-DEFINE_INTERFACE_FUNC(Var)
-DEFINE_INTERFACE_FUNC(VarArrayBuffer)
-DEFINE_INTERFACE_FUNC(View)
-DEFINE_INTERFACE_FUNC(WebSocket)
-
-
-#define REQUEST_INTERFACE(x, y) \
- s_##x = static_cast<const PPB_##x*>(PSGetInterface(PPB_ ## y ##_INTERFACE));
-
-void PSInterfaceInit() {
- REQUEST_INTERFACE(Audio, AUDIO)
- REQUEST_INTERFACE(AudioConfig, AUDIO_CONFIG)
- REQUEST_INTERFACE(Console, CONSOLE)
- REQUEST_INTERFACE(Core, CORE)
- REQUEST_INTERFACE(FileIO, FILEIO)
- REQUEST_INTERFACE(FileRef, FILEREF)
- REQUEST_INTERFACE(FileSystem, FILESYSTEM)
- REQUEST_INTERFACE(Fullscreen, FULLSCREEN)
- REQUEST_INTERFACE(Gamepad, GAMEPAD)
- REQUEST_INTERFACE(Graphics2D, GRAPHICS_2D)
- REQUEST_INTERFACE(Graphics3D, GRAPHICS_3D)
- REQUEST_INTERFACE(ImageData, IMAGEDATA)
- REQUEST_INTERFACE(Instance, INSTANCE)
- REQUEST_INTERFACE(Messaging, MESSAGING)
- REQUEST_INTERFACE(MessageLoop, MESSAGELOOP)
- REQUEST_INTERFACE(MouseCursor, MOUSECURSOR)
- REQUEST_INTERFACE(URLLoader, URLLOADER)
- REQUEST_INTERFACE(URLRequestInfo, URLREQUESTINFO)
- REQUEST_INTERFACE(URLResponseInfo, URLRESPONSEINFO)
- REQUEST_INTERFACE(Var, VAR)
- REQUEST_INTERFACE(VarArrayBuffer, VAR_ARRAY_BUFFER)
- REQUEST_INTERFACE(View, VIEW)
- REQUEST_INTERFACE(WebSocket, WEBSOCKET)
-}
« no previous file with comments | « native_client_sdk/src/libraries/ppapi_simple/ps_interface.c ('k') | native_client_sdk/src/libraries/ppapi_simple/ps_main.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698