OLD | NEW |
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/ppapi_proxy/browser_globals.h" | 5 #include "native_client/src/shared/ppapi_proxy/browser_globals.h" |
6 | 6 |
7 #include <stdio.h> | 7 #include <stdio.h> |
8 #include <stdlib.h> | 8 #include <stdlib.h> |
9 #include <string.h> | 9 #include <string.h> |
10 #include <map> | 10 #include <map> |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 return ppb; | 271 return ppb; |
272 } | 272 } |
273 | 273 |
274 const PPB_MouseInputEvent* PPBMouseInputEventInterface() { | 274 const PPB_MouseInputEvent* PPBMouseInputEventInterface() { |
275 static const PPB_MouseInputEvent* ppb = | 275 static const PPB_MouseInputEvent* ppb = |
276 static_cast<const PPB_MouseInputEvent*>( | 276 static_cast<const PPB_MouseInputEvent*>( |
277 GetBrowserInterfaceSafe(PPB_MOUSE_INPUT_EVENT_INTERFACE)); | 277 GetBrowserInterfaceSafe(PPB_MOUSE_INPUT_EVENT_INTERFACE)); |
278 return ppb; | 278 return ppb; |
279 } | 279 } |
280 | 280 |
| 281 const PPB_MouseInputEvent_Dev* PPBMouseInputEventDevInterface() { |
| 282 static const PPB_MouseInputEvent_Dev* ppb = |
| 283 static_cast<const PPB_MouseInputEvent_Dev*>( |
| 284 GetBrowserInterfaceSafe(PPB_MOUSE_INPUT_EVENT_DEV_INTERFACE)); |
| 285 return ppb; |
| 286 } |
| 287 |
281 const PPB_URLLoader* PPBURLLoaderInterface() { | 288 const PPB_URLLoader* PPBURLLoaderInterface() { |
282 static const PPB_URLLoader* ppb = | 289 static const PPB_URLLoader* ppb = |
283 static_cast<const PPB_URLLoader*>( | 290 static_cast<const PPB_URLLoader*>( |
284 GetBrowserInterfaceSafe(PPB_URLLOADER_INTERFACE)); | 291 GetBrowserInterfaceSafe(PPB_URLLOADER_INTERFACE)); |
285 return ppb; | 292 return ppb; |
286 } | 293 } |
287 | 294 |
288 const PPB_URLRequestInfo* PPBURLRequestInfoInterface() { | 295 const PPB_URLRequestInfo* PPBURLRequestInfoInterface() { |
289 static const PPB_URLRequestInfo* ppb = | 296 static const PPB_URLRequestInfo* ppb = |
290 static_cast<const PPB_URLRequestInfo*>( | 297 static_cast<const PPB_URLRequestInfo*>( |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 | 400 |
394 // Private interfaces. | 401 // Private interfaces. |
395 const PPB_PDF* PPBPDFInterface() { | 402 const PPB_PDF* PPBPDFInterface() { |
396 static const PPB_PDF* ppb = | 403 static const PPB_PDF* ppb = |
397 static_cast<const PPB_PDF*>( | 404 static_cast<const PPB_PDF*>( |
398 GetBrowserInterfaceSafe(PPB_PDF_INTERFACE)); | 405 GetBrowserInterfaceSafe(PPB_PDF_INTERFACE)); |
399 return ppb; | 406 return ppb; |
400 } | 407 } |
401 | 408 |
402 } // namespace ppapi_proxy | 409 } // namespace ppapi_proxy |
OLD | NEW |