| 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 "content/renderer/browser_plugin/browser_plugin.h" | 5 #include "content/renderer/browser_plugin/browser_plugin.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/json/json_string_value_serializer.h" | 8 #include "base/json/json_string_value_serializer.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/string_number_conversions.h" | 10 #include "base/string_number_conversions.h" |
| (...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 create_guest_params)); | 402 create_guest_params)); |
| 403 } | 403 } |
| 404 | 404 |
| 405 void BrowserPlugin::OnAdvanceFocus(int instance_id, bool reverse) { | 405 void BrowserPlugin::OnAdvanceFocus(int instance_id, bool reverse) { |
| 406 DCHECK(render_view_); | 406 DCHECK(render_view_); |
| 407 render_view_->GetWebView()->advanceFocus(reverse); | 407 render_view_->GetWebView()->advanceFocus(reverse); |
| 408 } | 408 } |
| 409 | 409 |
| 410 void BrowserPlugin::OnBuffersSwapped(int instance_id, | 410 void BrowserPlugin::OnBuffersSwapped(int instance_id, |
| 411 const gfx::Size& size, | 411 const gfx::Size& size, |
| 412 std::string mailbox_name, | 412 gpu::Mailbox mailbox_name, |
| 413 int gpu_route_id, | 413 int gpu_route_id, |
| 414 int gpu_host_id) { | 414 int gpu_host_id) { |
| 415 DCHECK(instance_id == instance_id_); | 415 DCHECK(instance_id == instance_id_); |
| 416 EnableCompositing(true); | 416 EnableCompositing(true); |
| 417 | 417 |
| 418 compositing_helper_->OnBuffersSwapped(size, | 418 compositing_helper_->OnBuffersSwapped(size, |
| 419 mailbox_name, | 419 mailbox_name, |
| 420 gpu_route_id, | 420 gpu_route_id, |
| 421 gpu_host_id, | 421 gpu_host_id, |
| 422 GetDeviceScaleFactor()); | 422 GetDeviceScaleFactor()); |
| (...skipping 979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1402 const WebKit::WebMouseEvent& event) { | 1402 const WebKit::WebMouseEvent& event) { |
| 1403 browser_plugin_manager()->Send( | 1403 browser_plugin_manager()->Send( |
| 1404 new BrowserPluginHostMsg_HandleInputEvent(render_view_routing_id_, | 1404 new BrowserPluginHostMsg_HandleInputEvent(render_view_routing_id_, |
| 1405 instance_id_, | 1405 instance_id_, |
| 1406 plugin_rect_, | 1406 plugin_rect_, |
| 1407 &event)); | 1407 &event)); |
| 1408 return true; | 1408 return true; |
| 1409 } | 1409 } |
| 1410 | 1410 |
| 1411 } // namespace content | 1411 } // namespace content |
| OLD | NEW |