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

Side by Side Diff: ppapi/native_client/tests/ppapi_test_lib/get_browser_interface.cc

Issue 8951014: Change the DidChangeView update to take a new ViewChanged resource. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More nacl fixes Created 8 years, 11 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 Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 6
7 #include "ppapi/c/dev/ppb_cursor_control_dev.h" 7 #include "ppapi/c/dev/ppb_cursor_control_dev.h"
8 #include "ppapi/c/dev/ppb_font_dev.h" 8 #include "ppapi/c/dev/ppb_font_dev.h"
9 #include "ppapi/c/dev/ppb_memory_dev.h" 9 #include "ppapi/c/dev/ppb_memory_dev.h"
10 #include "ppapi/c/dev/ppb_scrollbar_dev.h" 10 #include "ppapi/c/dev/ppb_scrollbar_dev.h"
11 #include "ppapi/c/dev/ppb_testing_dev.h" 11 #include "ppapi/c/dev/ppb_testing_dev.h"
12 #include "ppapi/c/dev/ppb_var_deprecated.h" 12 #include "ppapi/c/dev/ppb_var_deprecated.h"
13 #include "ppapi/c/dev/ppb_widget_dev.h" 13 #include "ppapi/c/dev/ppb_widget_dev.h"
14 #include "ppapi/c/ppb_core.h" 14 #include "ppapi/c/ppb_core.h"
15 #include "ppapi/c/ppb_file_io.h" 15 #include "ppapi/c/ppb_file_io.h"
16 #include "ppapi/c/ppb_file_ref.h" 16 #include "ppapi/c/ppb_file_ref.h"
17 #include "ppapi/c/ppb_file_system.h" 17 #include "ppapi/c/ppb_file_system.h"
18 #include "ppapi/c/ppb_fullscreen.h" 18 #include "ppapi/c/ppb_fullscreen.h"
19 #include "ppapi/c/ppb_graphics_2d.h" 19 #include "ppapi/c/ppb_graphics_2d.h"
20 #include "ppapi/c/ppb_graphics_3d.h" 20 #include "ppapi/c/ppb_graphics_3d.h"
21 #include "ppapi/c/ppb_image_data.h" 21 #include "ppapi/c/ppb_image_data.h"
22 #include "ppapi/c/ppb_input_event.h" 22 #include "ppapi/c/ppb_input_event.h"
23 #include "ppapi/c/ppb_instance.h" 23 #include "ppapi/c/ppb_instance.h"
24 #include "ppapi/c/ppb_messaging.h" 24 #include "ppapi/c/ppb_messaging.h"
25 #include "ppapi/c/ppb_opengles2.h" 25 #include "ppapi/c/ppb_opengles2.h"
26 #include "ppapi/c/ppb_url_loader.h" 26 #include "ppapi/c/ppb_url_loader.h"
27 #include "ppapi/c/ppb_url_request_info.h" 27 #include "ppapi/c/ppb_url_request_info.h"
28 #include "ppapi/c/ppb_url_response_info.h" 28 #include "ppapi/c/ppb_url_response_info.h"
29 #include "ppapi/c/ppb_var.h" 29 #include "ppapi/c/ppb_var.h"
30 #include "ppapi/c/ppb_view.h"
30 31
31 #include "native_client/tests/ppapi_test_lib/get_browser_interface.h" 32 #include "native_client/tests/ppapi_test_lib/get_browser_interface.h"
32 #include "native_client/tests/ppapi_test_lib/internal_utils.h" 33 #include "native_client/tests/ppapi_test_lib/internal_utils.h"
33 34
34 // Use for dev interfaces that might not be present. 35 // Use for dev interfaces that might not be present.
35 const void* GetBrowserInterface(const char* interface_name) { 36 const void* GetBrowserInterface(const char* interface_name) {
36 return (*ppb_get_interface())(interface_name); 37 return (*ppb_get_interface())(interface_name);
37 } 38 }
38 39
39 // Use for stable interfaces that must always be present. 40 // Use for stable interfaces that must always be present.
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 // Change to GetBrowserInterfaceSafe when moving out of dev. 167 // Change to GetBrowserInterfaceSafe when moving out of dev.
167 GetBrowserInterface(PPB_SCROLLBAR_DEV_INTERFACE)); 168 GetBrowserInterface(PPB_SCROLLBAR_DEV_INTERFACE));
168 } 169 }
169 170
170 const PPB_Testing_Dev* PPBTestingDev() { 171 const PPB_Testing_Dev* PPBTestingDev() {
171 return reinterpret_cast<const PPB_Testing_Dev*>( 172 return reinterpret_cast<const PPB_Testing_Dev*>(
172 // Change to GetBrowserInterfaceSafe when moving out of dev. 173 // Change to GetBrowserInterfaceSafe when moving out of dev.
173 GetBrowserInterface(PPB_TESTING_DEV_INTERFACE)); 174 GetBrowserInterface(PPB_TESTING_DEV_INTERFACE));
174 } 175 }
175 176
177 const PPB_View* PPBView() {
178 return reinterpret_cast<const PPB_View*>(
179 GetBrowserInterface(PPB_VIEW_INTERFACE));
180 }
181
176 const PPB_Widget_Dev* PPBWidgetDev() { 182 const PPB_Widget_Dev* PPBWidgetDev() {
177 return reinterpret_cast<const PPB_Widget_Dev*>( 183 return reinterpret_cast<const PPB_Widget_Dev*>(
178 // Change to GetBrowserInterfaceSafe when moving out of dev. 184 // Change to GetBrowserInterfaceSafe when moving out of dev.
179 GetBrowserInterface(PPB_WIDGET_DEV_INTERFACE)); 185 GetBrowserInterface(PPB_WIDGET_DEV_INTERFACE));
180 } 186 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698