From eb98f911ef43bf5463621031d0e79a98e061b3cb Mon Sep 17 00:00:00 2001 From: paulmeyer Date: Fri, 23 Jan 2015 09:13:38 -0800 Subject: Implemented explicit resizing from guestview. A guest can now be explicitly resized (in addition to autosizing) from guest_view.js, using the new |setSize| function. This new function combines autosizing and normal resizing, as described in: https://docs.google.com/document/d/1EJfmJSK0JJsxKptSRhepnsOOwvXJNv5nnJ1pZdjGDRQ BUG=434226 Review URL: https://codereview.chromium.org/857093003 Cr-Commit-Position: refs/heads/master@{#312866} --- .../guest_view/mime_handler_view/mime_handler_view_container.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'extensions/renderer/guest_view') diff --git a/extensions/renderer/guest_view/mime_handler_view/mime_handler_view_container.cc b/extensions/renderer/guest_view/mime_handler_view/mime_handler_view_container.cc index cdede3d..59f3e29 100644 --- a/extensions/renderer/guest_view/mime_handler_view/mime_handler_view_container.cc +++ b/extensions/renderer/guest_view/mime_handler_view/mime_handler_view_container.cc @@ -126,7 +126,7 @@ bool MimeHandlerViewContainer::OnMessageReceived(const IPC::Message& message) { OnMimeHandlerViewGuestOnLoadCompleted) IPC_MESSAGE_UNHANDLED(handled = false) IPC_END_MESSAGE_MAP() - return handled; + return handled; } void MimeHandlerViewContainer::DidResizeElement(const gfx::Size& old_size, @@ -248,8 +248,7 @@ void MimeHandlerViewContainer::CreateMimeHandlerViewGuest() { return; render_frame()->Send(new ExtensionHostMsg_CreateMimeHandlerViewGuest( - render_frame()->GetRoutingID(), - view_id_, element_instance_id(), + render_frame()->GetRoutingID(), view_id_, element_instance_id(), element_size_)); } -- cgit v1.1