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/plugin_ppb_fullscreen.h" | 5 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_fullscreen.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/utility.h" | 7 #include "native_client/src/shared/ppapi_proxy/utility.h" |
8 #include "ppapi/c/dev/ppb_fullscreen_dev.h" | |
9 #include "ppapi/c/pp_size.h" | 8 #include "ppapi/c/pp_size.h" |
| 9 #include "ppapi/c/ppb_fullscreen.h" |
10 #include "srpcgen/ppb_rpc.h" | 10 #include "srpcgen/ppb_rpc.h" |
11 | 11 |
12 namespace ppapi_proxy { | 12 namespace ppapi_proxy { |
13 | 13 |
14 namespace { | 14 namespace { |
15 | 15 |
16 PP_Bool IsFullscreen(PP_Instance instance) { | 16 PP_Bool IsFullscreen(PP_Instance instance) { |
17 DebugPrintf("PPB_Fullscreen::IsFullscreen: instance=%"NACL_PRIu32"\n", | 17 DebugPrintf("PPB_Fullscreen::IsFullscreen: instance=%"NACL_PRIu32"\n", |
18 instance); | 18 instance); |
19 | 19 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 DebugPrintf("PPB_Fullscreen::GetScreenSize: %s\n", | 69 DebugPrintf("PPB_Fullscreen::GetScreenSize: %s\n", |
70 NaClSrpcErrorString(srpc_result)); | 70 NaClSrpcErrorString(srpc_result)); |
71 | 71 |
72 if (srpc_result == NACL_SRPC_RESULT_OK && success) | 72 if (srpc_result == NACL_SRPC_RESULT_OK && success) |
73 return PP_TRUE; | 73 return PP_TRUE; |
74 return PP_FALSE; | 74 return PP_FALSE; |
75 } | 75 } |
76 | 76 |
77 } // namespace | 77 } // namespace |
78 | 78 |
79 const PPB_Fullscreen_Dev* PluginFullscreen::GetInterface() { | 79 const PPB_Fullscreen* PluginFullscreen::GetInterface() { |
80 static const PPB_Fullscreen_Dev fullscreen_interface = { | 80 static const PPB_Fullscreen fullscreen_interface = { |
81 IsFullscreen, | 81 IsFullscreen, |
82 SetFullscreen, | 82 SetFullscreen, |
83 GetScreenSize | 83 GetScreenSize |
84 }; | 84 }; |
85 return &fullscreen_interface; | 85 return &fullscreen_interface; |
86 } | 86 } |
87 | 87 |
88 } // namespace ppapi_proxy | 88 } // namespace ppapi_proxy |
OLD | NEW |