| 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 "ppapi/proxy/ppb_instance_proxy.h" | 5 #include "ppapi/proxy/ppb_instance_proxy.h" |
| 6 | 6 |
| 7 #include "base/memory/ref_counted.h" | 7 #include "base/memory/ref_counted.h" |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "ppapi/c/pp_errors.h" | 9 #include "ppapi/c/pp_errors.h" |
| 10 #include "ppapi/c/pp_time.h" | 10 #include "ppapi/c/pp_time.h" |
| (...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 void PPB_Instance_Proxy::ZoomLimitsChanged(PP_Instance instance, | 491 void PPB_Instance_Proxy::ZoomLimitsChanged(PP_Instance instance, |
| 492 double minimum_factor, | 492 double minimum_factor, |
| 493 double maximium_factor) { | 493 double maximium_factor) { |
| 494 // Not proxied yet. | 494 // Not proxied yet. |
| 495 NOTIMPLEMENTED(); | 495 NOTIMPLEMENTED(); |
| 496 } | 496 } |
| 497 | 497 |
| 498 PP_Var PPB_Instance_Proxy::GetDocumentURL(PP_Instance instance, | 498 PP_Var PPB_Instance_Proxy::GetDocumentURL(PP_Instance instance, |
| 499 PP_URLComponents_Dev* components) { | 499 PP_URLComponents_Dev* components) { |
| 500 ReceiveSerializedVarReturnValue result; | 500 ReceiveSerializedVarReturnValue result; |
| 501 PP_URLComponents_Dev url_components; | 501 PP_URLComponents_Dev url_components = {{0}}; |
| 502 dispatcher()->Send(new PpapiHostMsg_PPBInstance_GetDocumentURL( | 502 dispatcher()->Send(new PpapiHostMsg_PPBInstance_GetDocumentURL( |
| 503 API_ID_PPB_INSTANCE, instance, &url_components, &result)); | 503 API_ID_PPB_INSTANCE, instance, &url_components, &result)); |
| 504 if (components) | 504 if (components) |
| 505 *components = url_components; | 505 *components = url_components; |
| 506 return result.Return(dispatcher()); | 506 return result.Return(dispatcher()); |
| 507 } | 507 } |
| 508 | 508 |
| 509 #if !defined(OS_NACL) | 509 #if !defined(OS_NACL) |
| 510 PP_Var PPB_Instance_Proxy::ResolveRelativeToDocument( | 510 PP_Var PPB_Instance_Proxy::ResolveRelativeToDocument( |
| 511 PP_Instance instance, | 511 PP_Instance instance, |
| (...skipping 924 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1436 PP_Instance instance) { | 1436 PP_Instance instance) { |
| 1437 InstanceData* data = static_cast<PluginDispatcher*>(dispatcher())-> | 1437 InstanceData* data = static_cast<PluginDispatcher*>(dispatcher())-> |
| 1438 GetInstanceData(instance); | 1438 GetInstanceData(instance); |
| 1439 if (!data) | 1439 if (!data) |
| 1440 return; // Instance was probably deleted. | 1440 return; // Instance was probably deleted. |
| 1441 data->should_do_request_surrounding_text = false; | 1441 data->should_do_request_surrounding_text = false; |
| 1442 } | 1442 } |
| 1443 | 1443 |
| 1444 } // namespace proxy | 1444 } // namespace proxy |
| 1445 } // namespace ppapi | 1445 } // namespace ppapi |
| OLD | NEW |