| 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 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 navigate_src_sent_ = true; | 393 navigate_src_sent_ = true; |
| 394 } | 394 } |
| 395 | 395 |
| 396 void BrowserPlugin::OnAdvanceFocus(int instance_id, bool reverse) { | 396 void BrowserPlugin::OnAdvanceFocus(int instance_id, bool reverse) { |
| 397 DCHECK(render_view_); | 397 DCHECK(render_view_); |
| 398 render_view_->GetWebView()->advanceFocus(reverse); | 398 render_view_->GetWebView()->advanceFocus(reverse); |
| 399 } | 399 } |
| 400 | 400 |
| 401 void BrowserPlugin::OnBuffersSwapped(int instance_id, | 401 void BrowserPlugin::OnBuffersSwapped(int instance_id, |
| 402 const gfx::Size& size, | 402 const gfx::Size& size, |
| 403 std::string mailbox_name, | 403 gpu::Mailbox mailbox_name, |
| 404 int gpu_route_id, | 404 int gpu_route_id, |
| 405 int gpu_host_id) { | 405 int gpu_host_id) { |
| 406 DCHECK(instance_id == instance_id_); | 406 DCHECK(instance_id == instance_id_); |
| 407 EnableCompositing(true); | 407 EnableCompositing(true); |
| 408 | 408 |
| 409 compositing_helper_->OnBuffersSwapped(size, | 409 compositing_helper_->OnBuffersSwapped(size, |
| 410 mailbox_name, | 410 mailbox_name, |
| 411 gpu_route_id, | 411 gpu_route_id, |
| 412 gpu_host_id, | 412 gpu_host_id, |
| 413 GetDeviceScaleFactor()); | 413 GetDeviceScaleFactor()); |
| (...skipping 993 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1407 const WebKit::WebMouseEvent& event) { | 1407 const WebKit::WebMouseEvent& event) { |
| 1408 browser_plugin_manager()->Send( | 1408 browser_plugin_manager()->Send( |
| 1409 new BrowserPluginHostMsg_HandleInputEvent(render_view_routing_id_, | 1409 new BrowserPluginHostMsg_HandleInputEvent(render_view_routing_id_, |
| 1410 instance_id_, | 1410 instance_id_, |
| 1411 plugin_rect_, | 1411 plugin_rect_, |
| 1412 &event)); | 1412 &event)); |
| 1413 return true; | 1413 return true; |
| 1414 } | 1414 } |
| 1415 | 1415 |
| 1416 } // namespace content | 1416 } // namespace content |
| OLD | NEW |