| 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 "ppapi/proxy/ppp_instance_proxy.h" | 5 #include "ppapi/proxy/ppp_instance_proxy.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "ppapi/c/pp_var.h" | 9 #include "ppapi/c/pp_var.h" |
| 10 #include "ppapi/c/ppb_core.h" | 10 #include "ppapi/c/ppb_core.h" |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 return; | 232 return; |
| 233 InstanceData* data = dispatcher->GetInstanceData(instance); | 233 InstanceData* data = dispatcher->GetInstanceData(instance); |
| 234 if (!data) | 234 if (!data) |
| 235 return; | 235 return; |
| 236 | 236 |
| 237 data->view = new_data; | 237 data->view = new_data; |
| 238 data->flash_fullscreen = flash_fullscreen; | 238 data->flash_fullscreen = flash_fullscreen; |
| 239 | 239 |
| 240 ScopedPPResource resource( | 240 ScopedPPResource resource( |
| 241 ScopedPPResource::PassRef(), | 241 ScopedPPResource::PassRef(), |
| 242 (new PPB_View_Shared(PPB_View_Shared::InitAsProxy(), | 242 (new PPB_View_Shared(OBJECT_IS_PROXY, |
| 243 instance, new_data))->GetReference()); | 243 instance, new_data))->GetReference()); |
| 244 | 244 |
| 245 combined_interface_->DidChangeView(instance, resource, | 245 combined_interface_->DidChangeView(instance, resource, |
| 246 &new_data.rect, | 246 &new_data.rect, |
| 247 &new_data.clip_rect); | 247 &new_data.clip_rect); |
| 248 } | 248 } |
| 249 | 249 |
| 250 void PPP_Instance_Proxy::OnPluginMsgDidChangeFocus(PP_Instance instance, | 250 void PPP_Instance_Proxy::OnPluginMsgDidChangeFocus(PP_Instance instance, |
| 251 PP_Bool has_focus) { | 251 PP_Bool has_focus) { |
| 252 combined_interface_->DidChangeFocus(instance, has_focus); | 252 combined_interface_->DidChangeFocus(instance, has_focus); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 264 // with. The plugin will normally take an additional reference which will keep | 264 // with. The plugin will normally take an additional reference which will keep |
| 265 // the resource alive in the plugin (and the one reference in the renderer | 265 // the resource alive in the plugin (and the one reference in the renderer |
| 266 // representing all plugin references). | 266 // representing all plugin references). |
| 267 // Once all references at the plugin side are released, the renderer side will | 267 // Once all references at the plugin side are released, the renderer side will |
| 268 // be notified and release the reference added in HandleDocumentLoad() above. | 268 // be notified and release the reference added in HandleDocumentLoad() above. |
| 269 PpapiGlobals::Get()->GetResourceTracker()->ReleaseResource(plugin_loader); | 269 PpapiGlobals::Get()->GetResourceTracker()->ReleaseResource(plugin_loader); |
| 270 } | 270 } |
| 271 | 271 |
| 272 } // namespace proxy | 272 } // namespace proxy |
| 273 } // namespace ppapi | 273 } // namespace ppapi |
| OLD | NEW |