OLD | NEW |
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 | 6 |
7 #include "ppapi/c/dev/ppb_cursor_control_dev.h" | |
8 #include "ppapi/c/dev/ppb_font_dev.h" | 7 #include "ppapi/c/dev/ppb_font_dev.h" |
9 #include "ppapi/c/dev/ppb_memory_dev.h" | 8 #include "ppapi/c/dev/ppb_memory_dev.h" |
10 #include "ppapi/c/dev/ppb_scrollbar_dev.h" | 9 #include "ppapi/c/dev/ppb_scrollbar_dev.h" |
11 #include "ppapi/c/dev/ppb_testing_dev.h" | 10 #include "ppapi/c/dev/ppb_testing_dev.h" |
12 #include "ppapi/c/dev/ppb_var_deprecated.h" | 11 #include "ppapi/c/dev/ppb_var_deprecated.h" |
13 #include "ppapi/c/dev/ppb_widget_dev.h" | 12 #include "ppapi/c/dev/ppb_widget_dev.h" |
14 #include "ppapi/c/ppb_audio.h" | 13 #include "ppapi/c/ppb_audio.h" |
15 #include "ppapi/c/ppb_audio_config.h" | 14 #include "ppapi/c/ppb_audio_config.h" |
16 #include "ppapi/c/ppb_core.h" | 15 #include "ppapi/c/ppb_core.h" |
17 #include "ppapi/c/ppb_file_io.h" | 16 #include "ppapi/c/ppb_file_io.h" |
18 #include "ppapi/c/ppb_file_ref.h" | 17 #include "ppapi/c/ppb_file_ref.h" |
19 #include "ppapi/c/ppb_file_system.h" | 18 #include "ppapi/c/ppb_file_system.h" |
20 #include "ppapi/c/ppb_fullscreen.h" | 19 #include "ppapi/c/ppb_fullscreen.h" |
21 #include "ppapi/c/ppb_graphics_2d.h" | 20 #include "ppapi/c/ppb_graphics_2d.h" |
22 #include "ppapi/c/ppb_graphics_3d.h" | 21 #include "ppapi/c/ppb_graphics_3d.h" |
23 #include "ppapi/c/ppb_image_data.h" | 22 #include "ppapi/c/ppb_image_data.h" |
24 #include "ppapi/c/ppb_input_event.h" | 23 #include "ppapi/c/ppb_input_event.h" |
25 #include "ppapi/c/ppb_instance.h" | 24 #include "ppapi/c/ppb_instance.h" |
26 #include "ppapi/c/ppb_messaging.h" | 25 #include "ppapi/c/ppb_messaging.h" |
| 26 #include "ppapi/c/ppb_mouse_cursor.h" |
27 #include "ppapi/c/ppb_opengles2.h" | 27 #include "ppapi/c/ppb_opengles2.h" |
28 #include "ppapi/c/ppb_url_loader.h" | 28 #include "ppapi/c/ppb_url_loader.h" |
29 #include "ppapi/c/ppb_url_request_info.h" | 29 #include "ppapi/c/ppb_url_request_info.h" |
30 #include "ppapi/c/ppb_url_response_info.h" | 30 #include "ppapi/c/ppb_url_response_info.h" |
31 #include "ppapi/c/ppb_var.h" | 31 #include "ppapi/c/ppb_var.h" |
32 #include "ppapi/c/ppb_view.h" | 32 #include "ppapi/c/ppb_view.h" |
33 | 33 |
34 #include "native_client/tests/ppapi_test_lib/get_browser_interface.h" | 34 #include "native_client/tests/ppapi_test_lib/get_browser_interface.h" |
35 #include "native_client/tests/ppapi_test_lib/internal_utils.h" | 35 #include "native_client/tests/ppapi_test_lib/internal_utils.h" |
36 | 36 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 const PPB_KeyboardInputEvent* PPBKeyboardInputEvent() { | 111 const PPB_KeyboardInputEvent* PPBKeyboardInputEvent() { |
112 return reinterpret_cast<const PPB_KeyboardInputEvent*>( | 112 return reinterpret_cast<const PPB_KeyboardInputEvent*>( |
113 GetBrowserInterfaceSafe(PPB_KEYBOARD_INPUT_EVENT_INTERFACE)); | 113 GetBrowserInterfaceSafe(PPB_KEYBOARD_INPUT_EVENT_INTERFACE)); |
114 } | 114 } |
115 | 115 |
116 const PPB_Messaging* PPBMessaging() { | 116 const PPB_Messaging* PPBMessaging() { |
117 return reinterpret_cast<const PPB_Messaging*>( | 117 return reinterpret_cast<const PPB_Messaging*>( |
118 GetBrowserInterfaceSafe(PPB_MESSAGING_INTERFACE)); | 118 GetBrowserInterfaceSafe(PPB_MESSAGING_INTERFACE)); |
119 } | 119 } |
120 | 120 |
| 121 const PPB_MouseCursor_1_0* PPBMouseCursor() { |
| 122 return reinterpret_cast<const PPB_MouseCursor_1_0*>( |
| 123 GetBrowserInterfaceSafe(PPB_MOUSECURSOR_INTERFACE_1_0)); |
| 124 } |
| 125 |
121 const PPB_MouseInputEvent* PPBMouseInputEvent() { | 126 const PPB_MouseInputEvent* PPBMouseInputEvent() { |
122 return reinterpret_cast<const PPB_MouseInputEvent*>( | 127 return reinterpret_cast<const PPB_MouseInputEvent*>( |
123 GetBrowserInterfaceSafe(PPB_MOUSE_INPUT_EVENT_INTERFACE)); | 128 GetBrowserInterfaceSafe(PPB_MOUSE_INPUT_EVENT_INTERFACE)); |
124 } | 129 } |
125 | 130 |
126 const PPB_OpenGLES2* PPBOpenGLES2() { | 131 const PPB_OpenGLES2* PPBOpenGLES2() { |
127 return reinterpret_cast<const PPB_OpenGLES2*>( | 132 return reinterpret_cast<const PPB_OpenGLES2*>( |
128 GetBrowserInterfaceSafe(PPB_OPENGLES2_INTERFACE)); | 133 GetBrowserInterfaceSafe(PPB_OPENGLES2_INTERFACE)); |
129 } | 134 } |
130 | 135 |
(...skipping 18 matching lines...) Expand all Loading... |
149 } | 154 } |
150 | 155 |
151 const PPB_WheelInputEvent* PPBWheelInputEvent() { | 156 const PPB_WheelInputEvent* PPBWheelInputEvent() { |
152 return reinterpret_cast<const PPB_WheelInputEvent*>( | 157 return reinterpret_cast<const PPB_WheelInputEvent*>( |
153 GetBrowserInterfaceSafe(PPB_WHEEL_INPUT_EVENT_INTERFACE)); | 158 GetBrowserInterfaceSafe(PPB_WHEEL_INPUT_EVENT_INTERFACE)); |
154 } | 159 } |
155 | 160 |
156 | 161 |
157 // Dev interfaces. | 162 // Dev interfaces. |
158 | 163 |
159 const PPB_CursorControl_Dev* PPBCursorControlDev() { | |
160 return reinterpret_cast<const PPB_CursorControl_Dev*>( | |
161 // Change to GetBrowserInterfaceSafe when moving out of dev. | |
162 GetBrowserInterface(PPB_CURSOR_CONTROL_DEV_INTERFACE)); | |
163 } | |
164 | |
165 const PPB_Font_Dev* PPBFontDev() { | 164 const PPB_Font_Dev* PPBFontDev() { |
166 return reinterpret_cast<const PPB_Font_Dev*>( | 165 return reinterpret_cast<const PPB_Font_Dev*>( |
167 // Change to GetBrowserInterfaceSafe when moving out of dev. | 166 // Change to GetBrowserInterfaceSafe when moving out of dev. |
168 GetBrowserInterface(PPB_FONT_DEV_INTERFACE)); | 167 GetBrowserInterface(PPB_FONT_DEV_INTERFACE)); |
169 } | 168 } |
170 | 169 |
171 const PPB_Memory_Dev* PPBMemoryDev() { | 170 const PPB_Memory_Dev* PPBMemoryDev() { |
172 return reinterpret_cast<const PPB_Memory_Dev*>( | 171 return reinterpret_cast<const PPB_Memory_Dev*>( |
173 // Change to GetBrowserInterfaceSafe when moving out of dev. | 172 // Change to GetBrowserInterfaceSafe when moving out of dev. |
174 GetBrowserInterface(PPB_MEMORY_DEV_INTERFACE)); | 173 GetBrowserInterface(PPB_MEMORY_DEV_INTERFACE)); |
(...skipping 14 matching lines...) Expand all Loading... |
189 const PPB_View* PPBView() { | 188 const PPB_View* PPBView() { |
190 return reinterpret_cast<const PPB_View*>( | 189 return reinterpret_cast<const PPB_View*>( |
191 GetBrowserInterface(PPB_VIEW_INTERFACE)); | 190 GetBrowserInterface(PPB_VIEW_INTERFACE)); |
192 } | 191 } |
193 | 192 |
194 const PPB_Widget_Dev* PPBWidgetDev() { | 193 const PPB_Widget_Dev* PPBWidgetDev() { |
195 return reinterpret_cast<const PPB_Widget_Dev*>( | 194 return reinterpret_cast<const PPB_Widget_Dev*>( |
196 // Change to GetBrowserInterfaceSafe when moving out of dev. | 195 // Change to GetBrowserInterfaceSafe when moving out of dev. |
197 GetBrowserInterface(PPB_WIDGET_DEV_INTERFACE)); | 196 GetBrowserInterface(PPB_WIDGET_DEV_INTERFACE)); |
198 } | 197 } |
OLD | NEW |