| 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 "base/bind_helpers.h" | 5 #include "base/bind_helpers.h" |
| 6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "content/browser/browser_plugin/browser_plugin_guest.h" | 9 #include "content/browser/browser_plugin/browser_plugin_guest.h" |
| 10 #include "content/browser/renderer_host/render_view_host_impl.h" | 10 #include "content/browser/renderer_host/render_view_host_impl.h" |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 } | 212 } |
| 213 | 213 |
| 214 guest_->clear_damage_buffer(); | 214 guest_->clear_damage_buffer(); |
| 215 guest_->SendMessageToEmbedder( | 215 guest_->SendMessageToEmbedder( |
| 216 new BrowserPluginMsg_CompositorFrameSwapped( | 216 new BrowserPluginMsg_CompositorFrameSwapped( |
| 217 guest_->instance_id(), | 217 guest_->instance_id(), |
| 218 *frame, | 218 *frame, |
| 219 host_->GetRoutingID(), | 219 host_->GetRoutingID(), |
| 220 output_surface_id, | 220 output_surface_id, |
| 221 host_->GetProcess()->GetID())); | 221 host_->GetProcess()->GetID())); |
| 222 UpdateCompositorFrameMetadata(frame->metadata); |
| 222 } | 223 } |
| 223 | 224 |
| 224 void RenderWidgetHostViewGuest::SetBounds(const gfx::Rect& rect) { | 225 void RenderWidgetHostViewGuest::SetBounds(const gfx::Rect& rect) { |
| 225 SetSize(rect.size()); | 226 SetSize(rect.size()); |
| 226 } | 227 } |
| 227 | 228 |
| 228 bool RenderWidgetHostViewGuest::OnMessageReceived(const IPC::Message& msg) { | 229 bool RenderWidgetHostViewGuest::OnMessageReceived(const IPC::Message& msg) { |
| 229 return platform_view_->OnMessageReceived(msg); | 230 return platform_view_->OnMessageReceived(msg); |
| 230 } | 231 } |
| 231 | 232 |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 576 return; | 577 return; |
| 577 for (ui::GestureRecognizer::Gestures::iterator g_it = gestures->begin(); | 578 for (ui::GestureRecognizer::Gestures::iterator g_it = gestures->begin(); |
| 578 g_it != gestures->end(); | 579 g_it != gestures->end(); |
| 579 ++g_it) { | 580 ++g_it) { |
| 580 ForwardGestureEventToRenderer(*g_it); | 581 ForwardGestureEventToRenderer(*g_it); |
| 581 } | 582 } |
| 582 } | 583 } |
| 583 | 584 |
| 584 | 585 |
| 585 } // namespace content | 586 } // namespace content |
| OLD | NEW |