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

Side by Side Diff: ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb.cc

Issue 9566022: Rename NaCl/pepper gamepad interface from _dev to stable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // Implements the untrusted side of the PPB_GetInterface method. 5 // Implements the untrusted side of the PPB_GetInterface method.
6 6
7 #include "native_client/src/shared/ppapi_proxy/plugin_globals.h" 7 #include "native_client/src/shared/ppapi_proxy/plugin_globals.h"
8 #include <stdlib.h> 8 #include <stdlib.h>
9 #include <string.h> 9 #include <string.h>
10 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_audio.h" 10 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_audio.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 true }, 63 true },
64 { PPB_CORE_INTERFACE, PluginCore::GetInterface(), true }, 64 { PPB_CORE_INTERFACE, PluginCore::GetInterface(), true },
65 { PPB_CURSOR_CONTROL_DEV_INTERFACE, PluginCursorControl::GetInterface(), 65 { PPB_CURSOR_CONTROL_DEV_INTERFACE, PluginCursorControl::GetInterface(),
66 true }, 66 true },
67 { PPB_FILEIO_INTERFACE, PluginFileIO::GetInterface(), true }, 67 { PPB_FILEIO_INTERFACE, PluginFileIO::GetInterface(), true },
68 { PPB_FILEREF_INTERFACE, PluginFileRef::GetInterface(), true }, 68 { PPB_FILEREF_INTERFACE, PluginFileRef::GetInterface(), true },
69 { PPB_FILESYSTEM_INTERFACE, PluginFileSystem::GetInterface(), true }, 69 { PPB_FILESYSTEM_INTERFACE, PluginFileSystem::GetInterface(), true },
70 { PPB_FIND_DEV_INTERFACE, PluginFind::GetInterface(), true }, 70 { PPB_FIND_DEV_INTERFACE, PluginFind::GetInterface(), true },
71 { PPB_FONT_DEV_INTERFACE, PluginFont::GetInterface(), true }, 71 { PPB_FONT_DEV_INTERFACE, PluginFont::GetInterface(), true },
72 { PPB_FULLSCREEN_INTERFACE, PluginFullscreen::GetInterface(), true }, 72 { PPB_FULLSCREEN_INTERFACE, PluginFullscreen::GetInterface(), true },
73 { PPB_GAMEPAD_DEV_INTERFACE, PluginGamepad::GetInterface(), true }, 73 { PPB_GAMEPAD_INTERFACE, PluginGamepad::GetInterface(), true },
74 { PPB_GRAPHICS_2D_INTERFACE, PluginGraphics2D::GetInterface(), true }, 74 { PPB_GRAPHICS_2D_INTERFACE, PluginGraphics2D::GetInterface(), true },
75 { PPB_GRAPHICS_3D_INTERFACE, PluginGraphics3D::GetInterface(), true }, 75 { PPB_GRAPHICS_3D_INTERFACE, PluginGraphics3D::GetInterface(), true },
76 { PPB_IMAGEDATA_INTERFACE, PluginImageData::GetInterface(), true }, 76 { PPB_IMAGEDATA_INTERFACE, PluginImageData::GetInterface(), true },
77 { PPB_INPUT_EVENT_INTERFACE, PluginInputEvent::GetInterface(), true }, 77 { PPB_INPUT_EVENT_INTERFACE, PluginInputEvent::GetInterface(), true },
78 { PPB_INSTANCE_INTERFACE, PluginInstance::GetInterface(), true }, 78 { PPB_INSTANCE_INTERFACE, PluginInstance::GetInterface(), true },
79 { PPB_KEYBOARD_INPUT_EVENT_INTERFACE, 79 { PPB_KEYBOARD_INPUT_EVENT_INTERFACE,
80 PluginInputEvent::GetKeyboardInterface(), true }, 80 PluginInputEvent::GetKeyboardInterface(), true },
81 { PPB_KEYBOARD_INPUT_EVENT_DEV_INTERFACE, 81 { PPB_KEYBOARD_INPUT_EVENT_DEV_INTERFACE,
82 PluginInputEvent::GetKeyboardInterface_Dev(), true }, 82 PluginInputEvent::GetKeyboardInterface_Dev(), true },
83 { PPB_MEMORY_DEV_INTERFACE, PluginMemory::GetInterface(), true }, 83 { PPB_MEMORY_DEV_INTERFACE, PluginMemory::GetInterface(), true },
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 interface_name, NaClSrpcErrorString(srpc_result)); 173 interface_name, NaClSrpcErrorString(srpc_result));
174 if (srpc_result != NACL_SRPC_RESULT_OK || !browser_exports_interface) { 174 if (srpc_result != NACL_SRPC_RESULT_OK || !browser_exports_interface) {
175 interface_map[index].ppb_interface = NULL; 175 interface_map[index].ppb_interface = NULL;
176 ppb_interface = NULL; 176 ppb_interface = NULL;
177 } 177 }
178 interface_map[index].needs_browser_check = false; 178 interface_map[index].needs_browser_check = false;
179 return ppb_interface; 179 return ppb_interface;
180 } 180 }
181 181
182 } // namespace ppapi_proxy 182 } // namespace ppapi_proxy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698