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

Side by Side Diff: ppapi/native_client/src/shared/ppapi_proxy/browser_ppp.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/ppapi_proxy/browser_ppp.h" 5 #include "native_client/src/shared/ppapi_proxy/browser_ppp.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 8
9 #include "native_client/src/include/nacl_scoped_ptr.h" 9 #include "native_client/src/include/nacl_scoped_ptr.h"
10 #include "native_client/src/include/portability.h" 10 #include "native_client/src/include/portability.h"
11 #include "native_client/src/include/portability_process.h" 11 #include "native_client/src/include/portability_process.h"
12 #include "native_client/src/shared/ppapi_proxy/browser_globals.h" 12 #include "native_client/src/shared/ppapi_proxy/browser_globals.h"
13 #include "native_client/src/shared/ppapi_proxy/browser_ppp_find.h" 13 #include "native_client/src/shared/ppapi_proxy/browser_ppp_find.h"
14 #include "native_client/src/shared/ppapi_proxy/browser_ppp_input_event.h" 14 #include "native_client/src/shared/ppapi_proxy/browser_ppp_input_event.h"
15 #include "native_client/src/shared/ppapi_proxy/browser_ppp_instance.h" 15 #include "native_client/src/shared/ppapi_proxy/browser_ppp_instance.h"
16 #include "native_client/src/shared/ppapi_proxy/browser_ppp_mouse_lock.h" 16 #include "native_client/src/shared/ppapi_proxy/browser_ppp_mouse_lock.h"
17 #include "native_client/src/shared/ppapi_proxy/browser_ppp_messaging.h" 17 #include "native_client/src/shared/ppapi_proxy/browser_ppp_messaging.h"
18 #include "native_client/src/shared/ppapi_proxy/browser_ppp_printing.h" 18 #include "native_client/src/shared/ppapi_proxy/browser_ppp_printing.h"
19 #include "native_client/src/shared/ppapi_proxy/browser_ppp_scrollbar.h"
20 #include "native_client/src/shared/ppapi_proxy/browser_ppp_selection.h" 19 #include "native_client/src/shared/ppapi_proxy/browser_ppp_selection.h"
21 #include "native_client/src/shared/ppapi_proxy/browser_ppp_widget.h"
22 #include "native_client/src/shared/ppapi_proxy/browser_ppp_zoom.h" 20 #include "native_client/src/shared/ppapi_proxy/browser_ppp_zoom.h"
23 #include "native_client/src/shared/ppapi_proxy/browser_upcall.h" 21 #include "native_client/src/shared/ppapi_proxy/browser_upcall.h"
24 #include "native_client/src/shared/ppapi_proxy/trusted/srpcgen/ppb_rpc.h" 22 #include "native_client/src/shared/ppapi_proxy/trusted/srpcgen/ppb_rpc.h"
25 #include "native_client/src/shared/ppapi_proxy/trusted/srpcgen/ppp_rpc.h" 23 #include "native_client/src/shared/ppapi_proxy/trusted/srpcgen/ppp_rpc.h"
26 #include "native_client/src/shared/ppapi_proxy/utility.h" 24 #include "native_client/src/shared/ppapi_proxy/utility.h"
27 #include "native_client/src/trusted/desc/nacl_desc_wrapper.h" 25 #include "native_client/src/trusted/desc/nacl_desc_wrapper.h"
28 #include "native_client/src/trusted/plugin/plugin.h" 26 #include "native_client/src/trusted/plugin/plugin.h"
29 #include "ppapi/c/dev/ppp_find_dev.h" 27 #include "ppapi/c/dev/ppp_find_dev.h"
30 #include "ppapi/c/dev/ppp_printing_dev.h" 28 #include "ppapi/c/dev/ppp_printing_dev.h"
31 #include "ppapi/c/dev/ppp_scrollbar_dev.h"
32 #include "ppapi/c/dev/ppp_selection_dev.h" 29 #include "ppapi/c/dev/ppp_selection_dev.h"
33 #include "ppapi/c/dev/ppp_widget_dev.h"
34 #include "ppapi/c/dev/ppp_zoom_dev.h" 30 #include "ppapi/c/dev/ppp_zoom_dev.h"
35 #include "ppapi/c/pp_errors.h" 31 #include "ppapi/c/pp_errors.h"
36 #include "ppapi/c/ppp.h" 32 #include "ppapi/c/ppp.h"
37 #include "ppapi/c/ppp_input_event.h" 33 #include "ppapi/c/ppp_input_event.h"
38 #include "ppapi/c/ppp_mouse_lock.h" 34 #include "ppapi/c/ppp_mouse_lock.h"
39 #include "ppapi/c/private/ppb_nacl_private.h" 35 #include "ppapi/c/private/ppb_nacl_private.h"
40 36
41 namespace ppapi_proxy { 37 namespace ppapi_proxy {
42 38
43 // 39 //
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 reinterpret_cast<const void*>(BrowserMouseLock::GetInterface()); 183 reinterpret_cast<const void*>(BrowserMouseLock::GetInterface());
188 } else if (strcmp(interface_name, PPP_INPUT_EVENT_INTERFACE) == 0) { 184 } else if (strcmp(interface_name, PPP_INPUT_EVENT_INTERFACE) == 0) {
189 ppp_interface = 185 ppp_interface =
190 reinterpret_cast<const void*>(BrowserInputEvent::GetInterface()); 186 reinterpret_cast<const void*>(BrowserInputEvent::GetInterface());
191 } else if (strcmp(interface_name, PPP_FIND_DEV_INTERFACE) == 0) { 187 } else if (strcmp(interface_name, PPP_FIND_DEV_INTERFACE) == 0) {
192 ppp_interface = 188 ppp_interface =
193 reinterpret_cast<const void*>(BrowserFind::GetInterface()); 189 reinterpret_cast<const void*>(BrowserFind::GetInterface());
194 } else if (strcmp(interface_name, PPP_PRINTING_DEV_INTERFACE) == 0) { 190 } else if (strcmp(interface_name, PPP_PRINTING_DEV_INTERFACE) == 0) {
195 ppp_interface = 191 ppp_interface =
196 reinterpret_cast<const void*>(BrowserPrinting::GetInterface()); 192 reinterpret_cast<const void*>(BrowserPrinting::GetInterface());
197 } else if (strcmp(interface_name, PPP_SCROLLBAR_DEV_INTERFACE) == 0) {
198 ppp_interface =
199 reinterpret_cast<const void*>(BrowserScrollbar::GetInterface());
200 } else if (strcmp(interface_name, PPP_SELECTION_DEV_INTERFACE) == 0) { 193 } else if (strcmp(interface_name, PPP_SELECTION_DEV_INTERFACE) == 0) {
201 ppp_interface = 194 ppp_interface =
202 reinterpret_cast<const void*>(BrowserSelection::GetInterface()); 195 reinterpret_cast<const void*>(BrowserSelection::GetInterface());
203 } else if (strcmp(interface_name, PPP_WIDGET_DEV_INTERFACE) == 0) {
204 ppp_interface =
205 reinterpret_cast<const void*>(BrowserWidget::GetInterface());
206 } else if (strcmp(interface_name, PPP_ZOOM_DEV_INTERFACE) == 0) { 196 } else if (strcmp(interface_name, PPP_ZOOM_DEV_INTERFACE) == 0) {
207 ppp_interface = 197 ppp_interface =
208 reinterpret_cast<const void*>(BrowserZoom::GetInterface()); 198 reinterpret_cast<const void*>(BrowserZoom::GetInterface());
209 } 199 }
210 // TODO(sehr): other interfaces go here. 200 // TODO(sehr): other interfaces go here.
211 DebugPrintf("PPP_GetInterface('%s'): %p\n", interface_name, ppp_interface); 201 DebugPrintf("PPP_GetInterface('%s'): %p\n", interface_name, ppp_interface);
212 return ppp_interface; 202 return ppp_interface;
213 } 203 }
214 204
215 const void* BrowserPpp::GetPluginInterfaceSafe(const char* interface_name) { 205 const void* BrowserPpp::GetPluginInterfaceSafe(const char* interface_name) {
216 const void* ppp_interface = GetPluginInterface(interface_name); 206 const void* ppp_interface = GetPluginInterface(interface_name);
217 if (ppp_interface == NULL) 207 if (ppp_interface == NULL)
218 DebugPrintf("PPB_GetInterface: %s not found\n", interface_name); 208 DebugPrintf("PPB_GetInterface: %s not found\n", interface_name);
219 CHECK(ppp_interface != NULL); 209 CHECK(ppp_interface != NULL);
220 return ppp_interface; 210 return ppp_interface;
221 } 211 }
222 212
223 } // namespace ppapi_proxy 213 } // namespace ppapi_proxy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698