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

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

Issue 9353013: Add GetUsbKeyCode dev interface for Pepper key events (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix typo (byte -> bit) Created 8 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 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 { PPB_FONT_DEV_INTERFACE, PluginFont::GetInterface(), true }, 68 { PPB_FONT_DEV_INTERFACE, PluginFont::GetInterface(), true },
69 { PPB_FULLSCREEN_INTERFACE, PluginFullscreen::GetInterface(), true }, 69 { PPB_FULLSCREEN_INTERFACE, PluginFullscreen::GetInterface(), true },
70 { PPB_GAMEPAD_DEV_INTERFACE, PluginGamepad::GetInterface(), true }, 70 { PPB_GAMEPAD_DEV_INTERFACE, PluginGamepad::GetInterface(), true },
71 { PPB_GRAPHICS_2D_INTERFACE, PluginGraphics2D::GetInterface(), true }, 71 { PPB_GRAPHICS_2D_INTERFACE, PluginGraphics2D::GetInterface(), true },
72 { PPB_GRAPHICS_3D_INTERFACE, PluginGraphics3D::GetInterface(), true }, 72 { PPB_GRAPHICS_3D_INTERFACE, PluginGraphics3D::GetInterface(), true },
73 { PPB_IMAGEDATA_INTERFACE, PluginImageData::GetInterface(), true }, 73 { PPB_IMAGEDATA_INTERFACE, PluginImageData::GetInterface(), true },
74 { PPB_INPUT_EVENT_INTERFACE, PluginInputEvent::GetInterface(), true }, 74 { PPB_INPUT_EVENT_INTERFACE, PluginInputEvent::GetInterface(), true },
75 { PPB_INSTANCE_INTERFACE, PluginInstance::GetInterface(), true }, 75 { PPB_INSTANCE_INTERFACE, PluginInstance::GetInterface(), true },
76 { PPB_KEYBOARD_INPUT_EVENT_INTERFACE, 76 { PPB_KEYBOARD_INPUT_EVENT_INTERFACE,
77 PluginInputEvent::GetKeyboardInterface(), true }, 77 PluginInputEvent::GetKeyboardInterface(), true },
78 { PPB_KEYBOARD_INPUT_EVENT_DEV_INTERFACE,
79 PluginInputEvent::GetKeyboardInterface_Dev(), true },
78 { PPB_MEMORY_DEV_INTERFACE, PluginMemory::GetInterface(), true }, 80 { PPB_MEMORY_DEV_INTERFACE, PluginMemory::GetInterface(), true },
79 { PPB_MESSAGING_INTERFACE, PluginMessaging::GetInterface(), true }, 81 { PPB_MESSAGING_INTERFACE, PluginMessaging::GetInterface(), true },
80 { PPB_MOUSE_INPUT_EVENT_INTERFACE_1_0, 82 { PPB_MOUSE_INPUT_EVENT_INTERFACE_1_0,
81 PluginInputEvent::GetMouseInterface1_0(), true }, 83 PluginInputEvent::GetMouseInterface1_0(), true },
82 { PPB_MOUSE_INPUT_EVENT_INTERFACE_1_1, 84 { PPB_MOUSE_INPUT_EVENT_INTERFACE_1_1,
83 PluginInputEvent::GetMouseInterface1_1(), true }, 85 PluginInputEvent::GetMouseInterface1_1(), true },
84 { PPB_MOUSELOCK_INTERFACE, PluginMouseLock::GetInterface(), true }, 86 { PPB_MOUSELOCK_INTERFACE, PluginMouseLock::GetInterface(), true },
85 { PPB_NETADDRESS_PRIVATE_INTERFACE_0_1, 87 { PPB_NETADDRESS_PRIVATE_INTERFACE_0_1,
86 PluginNetAddressPrivate::GetInterface0_1(), true }, 88 PluginNetAddressPrivate::GetInterface0_1(), true },
87 { PPB_NETADDRESS_PRIVATE_INTERFACE_1_0, 89 { PPB_NETADDRESS_PRIVATE_INTERFACE_1_0,
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 interface_name, NaClSrpcErrorString(srpc_result)); 150 interface_name, NaClSrpcErrorString(srpc_result));
149 if (srpc_result != NACL_SRPC_RESULT_OK || !browser_exports_interface) { 151 if (srpc_result != NACL_SRPC_RESULT_OK || !browser_exports_interface) {
150 interface_map[index].ppb_interface = NULL; 152 interface_map[index].ppb_interface = NULL;
151 ppb_interface = NULL; 153 ppb_interface = NULL;
152 } 154 }
153 interface_map[index].needs_browser_check = false; 155 interface_map[index].needs_browser_check = false;
154 return ppb_interface; 156 return ppb_interface;
155 } 157 }
156 158
157 } // namespace ppapi_proxy 159 } // namespace ppapi_proxy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698