| 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_ppp_instance.h" | 5 #include "native_client/src/shared/ppapi_proxy/browser_ppp_instance.h" |
| 6 | 6 |
| 7 #include <stdio.h> | 7 #include <stdio.h> |
| 8 #include <string.h> | 8 #include <string.h> |
| 9 #include <limits> | 9 #include <limits> |
| 10 | 10 |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 clip_array[0] = clip->point.x; | 116 clip_array[0] = clip->point.x; |
| 117 clip_array[1] = clip->point.y; | 117 clip_array[1] = clip->point.y; |
| 118 clip_array[2] = clip->size.width; | 118 clip_array[2] = clip->size.width; |
| 119 clip_array[3] = clip->size.height; | 119 clip_array[3] = clip->size.height; |
| 120 NaClSrpcError srpc_result = PppInstanceRpcClient::PPP_Instance_DidChangeView( | 120 NaClSrpcError srpc_result = PppInstanceRpcClient::PPP_Instance_DidChangeView( |
| 121 GetMainSrpcChannel(instance), | 121 GetMainSrpcChannel(instance), |
| 122 instance, | 122 instance, |
| 123 kPositionArraySize, | 123 kPositionArraySize, |
| 124 position_array, | 124 position_array, |
| 125 kClipArraySize, | 125 kClipArraySize, |
| 126 clip_array); | 126 clip_array, |
| 127 static_cast<int32_t>(PPBFullscreenInterface()->IsFullscreen(instance))); |
| 127 DebugPrintf("PPP_Instance::DidChangeView: %s\n", | 128 DebugPrintf("PPP_Instance::DidChangeView: %s\n", |
| 128 NaClSrpcErrorString(srpc_result)); | 129 NaClSrpcErrorString(srpc_result)); |
| 129 } | 130 } |
| 130 | 131 |
| 131 void DidChangeFocus(PP_Instance instance, PP_Bool has_focus) { | 132 void DidChangeFocus(PP_Instance instance, PP_Bool has_focus) { |
| 132 DebugPrintf("PPP_Instance::DidChangeFocus: instance=%"NACL_PRIu32", " | 133 DebugPrintf("PPP_Instance::DidChangeFocus: instance=%"NACL_PRIu32", " |
| 133 "has_focus = %d\n", instance, has_focus); | 134 "has_focus = %d\n", instance, has_focus); |
| 134 NaClSrpcError srpc_result = PppInstanceRpcClient::PPP_Instance_DidChangeFocus( | 135 NaClSrpcError srpc_result = PppInstanceRpcClient::PPP_Instance_DidChangeFocus( |
| 135 GetMainSrpcChannel(instance), | 136 GetMainSrpcChannel(instance), |
| 136 instance, | 137 instance, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 165 DidCreate, | 166 DidCreate, |
| 166 DidDestroy, | 167 DidDestroy, |
| 167 DidChangeView, | 168 DidChangeView, |
| 168 DidChangeFocus, | 169 DidChangeFocus, |
| 169 HandleDocumentLoad | 170 HandleDocumentLoad |
| 170 }; | 171 }; |
| 171 return &instance_interface; | 172 return &instance_interface; |
| 172 } | 173 } |
| 173 | 174 |
| 174 } // namespace ppapi_proxy | 175 } // namespace ppapi_proxy |
| OLD | NEW |