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

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

Issue 7715021: Add movement information to PPB_MouseInputEvent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 3 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) 2011 The Native Client Authors. All rights reserved. 1 // Copyright (c) 2011 The Native Client 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 { PPB_FONT_DEV_INTERFACE, PluginFont::GetInterface(), true }, 60 { PPB_FONT_DEV_INTERFACE, PluginFont::GetInterface(), true },
61 { PPB_GRAPHICS_2D_INTERFACE, PluginGraphics2D::GetInterface(), true }, 61 { PPB_GRAPHICS_2D_INTERFACE, PluginGraphics2D::GetInterface(), true },
62 { PPB_GRAPHICS_3D_DEV_INTERFACE, PluginGraphics3D::GetInterface(), true }, 62 { PPB_GRAPHICS_3D_DEV_INTERFACE, PluginGraphics3D::GetInterface(), true },
63 { PPB_IMAGEDATA_INTERFACE, PluginImageData::GetInterface(), true }, 63 { PPB_IMAGEDATA_INTERFACE, PluginImageData::GetInterface(), true },
64 { PPB_INPUT_EVENT_INTERFACE, PluginInputEvent::GetInterface(), true }, 64 { PPB_INPUT_EVENT_INTERFACE, PluginInputEvent::GetInterface(), true },
65 { PPB_INSTANCE_INTERFACE, PluginInstance::GetInterface(), true }, 65 { PPB_INSTANCE_INTERFACE, PluginInstance::GetInterface(), true },
66 { PPB_KEYBOARD_INPUT_EVENT_INTERFACE, 66 { PPB_KEYBOARD_INPUT_EVENT_INTERFACE,
67 PluginInputEvent::GetKeyboardInterface(), true }, 67 PluginInputEvent::GetKeyboardInterface(), true },
68 { PPB_MEMORY_DEV_INTERFACE, PluginMemory::GetInterface(), true }, 68 { PPB_MEMORY_DEV_INTERFACE, PluginMemory::GetInterface(), true },
69 { PPB_MESSAGING_INTERFACE, PluginMessaging::GetInterface(), true }, 69 { PPB_MESSAGING_INTERFACE, PluginMessaging::GetInterface(), true },
70 { PPB_MOUSE_INPUT_EVENT_INTERFACE, PluginInputEvent::GetMouseInterface(), 70 { PPB_MOUSE_INPUT_EVENT_INTERFACE_1_0,
71 true }, 71 PluginInputEvent::GetMouseInterface1_0(), true },
72 { PPB_MOUSE_INPUT_EVENT_INTERFACE_1_1,
73 PluginInputEvent::GetMouseInterface1_1(), true },
72 { PPB_OPENGLES2_DEV_INTERFACE, PluginGraphics3D::GetOpenGLESInterface(), 74 { PPB_OPENGLES2_DEV_INTERFACE, PluginGraphics3D::GetOpenGLESInterface(),
73 true }, 75 true },
74 { PPB_PDF_INTERFACE, PluginPDF::GetInterface(), true }, 76 { PPB_PDF_INTERFACE, PluginPDF::GetInterface(), true },
75 { PPB_SCROLLBAR_DEV_INTERFACE, PluginScrollbar::GetInterface(), true }, 77 { PPB_SCROLLBAR_DEV_INTERFACE, PluginScrollbar::GetInterface(), true },
76 { PPB_TESTING_DEV_INTERFACE, PluginTesting::GetInterface(), true }, 78 { PPB_TESTING_DEV_INTERFACE, PluginTesting::GetInterface(), true },
77 { PPB_URLLOADER_INTERFACE, PluginURLLoader::GetInterface(), true }, 79 { PPB_URLLOADER_INTERFACE, PluginURLLoader::GetInterface(), true },
78 { PPB_URLREQUESTINFO_INTERFACE, PluginURLRequestInfo::GetInterface(), true }, 80 { PPB_URLREQUESTINFO_INTERFACE, PluginURLRequestInfo::GetInterface(), true },
79 { PPB_URLRESPONSEINFO_INTERFACE, PluginURLResponseInfo::GetInterface(), 81 { PPB_URLRESPONSEINFO_INTERFACE, PluginURLResponseInfo::GetInterface(),
80 true }, 82 true },
81 { PPB_VAR_INTERFACE, PluginVar::GetInterface(), true }, 83 { PPB_VAR_INTERFACE, PluginVar::GetInterface(), true },
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 interface_name, NaClSrpcErrorString(srpc_result)); 122 interface_name, NaClSrpcErrorString(srpc_result));
121 if (srpc_result != NACL_SRPC_RESULT_OK || !browser_exports_interface) { 123 if (srpc_result != NACL_SRPC_RESULT_OK || !browser_exports_interface) {
122 interface_map[index].ppb_interface = NULL; 124 interface_map[index].ppb_interface = NULL;
123 ppb_interface = NULL; 125 ppb_interface = NULL;
124 } 126 }
125 interface_map[index].needs_browser_check = false; 127 interface_map[index].needs_browser_check = false;
126 return ppb_interface; 128 return ppb_interface;
127 } 129 }
128 130
129 } // namespace ppapi_proxy 131 } // namespace ppapi_proxy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698