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

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

Issue 10827456: Remove PPB_Scrollbar_Dev and PPB_Widget_Dev from native client (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Also remove PPB_PDF and associated tests Created 8 years, 4 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 #include "native_client/src/shared/platform/nacl_check.h" 5 #include "native_client/src/shared/platform/nacl_check.h"
6 #include "native_client/src/shared/ppapi_proxy/plugin_globals.h" 6 #include "native_client/src/shared/ppapi_proxy/plugin_globals.h"
7 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_core.h" 7 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_core.h"
8 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_var.h" 8 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_var.h"
9 #include "native_client/src/shared/ppapi_proxy/ppruntime.h" 9 #include "native_client/src/shared/ppapi_proxy/ppruntime.h"
10 #include "native_client/src/shared/ppapi_proxy/untrusted/srpcgen/ppp_rpc.h" 10 #include "native_client/src/shared/ppapi_proxy/untrusted/srpcgen/ppp_rpc.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 const PPP_MouseLock* PPPMouseLockInterface() { 144 const PPP_MouseLock* PPPMouseLockInterface() {
145 static const void* ppp = GetPluginInterfaceSafe(PPP_MOUSELOCK_INTERFACE); 145 static const void* ppp = GetPluginInterfaceSafe(PPP_MOUSELOCK_INTERFACE);
146 return static_cast<const PPP_MouseLock*>(ppp); 146 return static_cast<const PPP_MouseLock*>(ppp);
147 } 147 }
148 148
149 const PPP_Printing_Dev* PPPPrintingInterface() { 149 const PPP_Printing_Dev* PPPPrintingInterface() {
150 static const void* ppp = GetPluginInterfaceSafe(PPP_PRINTING_DEV_INTERFACE); 150 static const void* ppp = GetPluginInterfaceSafe(PPP_PRINTING_DEV_INTERFACE);
151 return static_cast<const PPP_Printing_Dev*>(ppp); 151 return static_cast<const PPP_Printing_Dev*>(ppp);
152 } 152 }
153 153
154 const PPP_Scrollbar_Dev* PPPScrollbarInterface() {
155 static const void* ppp = GetPluginInterfaceSafe(PPP_SCROLLBAR_DEV_INTERFACE);
156 return static_cast<const PPP_Scrollbar_Dev*>(ppp);
157 }
158
159 const PPP_Selection_Dev* PPPSelectionInterface() { 154 const PPP_Selection_Dev* PPPSelectionInterface() {
160 static const void* ppp = GetPluginInterfaceSafe(PPP_SELECTION_DEV_INTERFACE); 155 static const void* ppp = GetPluginInterfaceSafe(PPP_SELECTION_DEV_INTERFACE);
161 return static_cast<const PPP_Selection_Dev*>(ppp); 156 return static_cast<const PPP_Selection_Dev*>(ppp);
162 } 157 }
163 158
164 const PPP_Widget_Dev* PPPWidgetInterface() {
165 static const void* ppp = GetPluginInterfaceSafe(PPP_WIDGET_DEV_INTERFACE);
166 return static_cast<const PPP_Widget_Dev*>(ppp);
167 }
168
169 const PPP_Zoom_Dev* PPPZoomInterface() { 159 const PPP_Zoom_Dev* PPPZoomInterface() {
170 static const void* ppp = GetPluginInterfaceSafe(PPP_ZOOM_DEV_INTERFACE); 160 static const void* ppp = GetPluginInterfaceSafe(PPP_ZOOM_DEV_INTERFACE);
171 return static_cast<const PPP_Zoom_Dev*>(ppp); 161 return static_cast<const PPP_Zoom_Dev*>(ppp);
172 } 162 }
173 163
174 164
175 } // namespace ppapi_proxy 165 } // namespace ppapi_proxy
176 166
177 void PpapiPluginRegisterThreadCreator( 167 void PpapiPluginRegisterThreadCreator(
178 const struct PP_ThreadFunctions* new_funcs) { 168 const struct PP_ThreadFunctions* new_funcs) {
(...skipping 19 matching lines...) Expand all
198 IrtInit(); 188 IrtInit();
199 // Designate this as the main thread for PPB_Core::IsMainThread(). 189 // Designate this as the main thread for PPB_Core::IsMainThread().
200 ppapi_proxy::PluginCore::MarkMainThread(); 190 ppapi_proxy::PluginCore::MarkMainThread();
201 if (!NaClSrpcAcceptClientConnection(PppRpcs::srpc_methods)) { 191 if (!NaClSrpcAcceptClientConnection(PppRpcs::srpc_methods)) {
202 return 1; 192 return 1;
203 } 193 }
204 NaClSrpcModuleFini(); 194 NaClSrpcModuleFini();
205 195
206 return 0; 196 return 0;
207 } 197 }
OLDNEW
« no previous file with comments | « ppapi/native_client/src/shared/ppapi_proxy/plugin_globals.h ('k') | ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698