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 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 navigate_src_sent_ = true; | 404 navigate_src_sent_ = true; |
405 } | 405 } |
406 | 406 |
407 void BrowserPlugin::OnAdvanceFocus(int instance_id, bool reverse) { | 407 void BrowserPlugin::OnAdvanceFocus(int instance_id, bool reverse) { |
408 DCHECK(render_view_); | 408 DCHECK(render_view_); |
409 render_view_->GetWebView()->advanceFocus(reverse); | 409 render_view_->GetWebView()->advanceFocus(reverse); |
410 } | 410 } |
411 | 411 |
412 void BrowserPlugin::OnBuffersSwapped(int instance_id, | 412 void BrowserPlugin::OnBuffersSwapped(int instance_id, |
413 const gfx::Size& size, | 413 const gfx::Size& size, |
414 gpu::Mailbox mailbox_name, | 414 std::string mailbox_name, |
415 int gpu_route_id, | 415 int gpu_route_id, |
416 int gpu_host_id) { | 416 int gpu_host_id) { |
417 DCHECK(instance_id == instance_id_); | 417 DCHECK(instance_id == instance_id_); |
418 EnableCompositing(true); | 418 EnableCompositing(true); |
419 | 419 |
420 compositing_helper_->OnBuffersSwapped(size, | 420 compositing_helper_->OnBuffersSwapped(size, |
421 mailbox_name, | 421 mailbox_name, |
422 gpu_route_id, | 422 gpu_route_id, |
423 gpu_host_id, | 423 gpu_host_id, |
424 GetDeviceScaleFactor()); | 424 GetDeviceScaleFactor()); |
(...skipping 977 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 |