diff options
author | paulmeyer <paulmeyer@chromium.org> | 2015-01-23 09:13:38 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-23 17:14:51 +0000 |
commit | eb98f911ef43bf5463621031d0e79a98e061b3cb (patch) | |
tree | e7ba01d6f7ceadcd94941ed1c6db7b857727c57b /extensions/renderer/guest_view | |
parent | fa52466b75af4dc5cf17354b4912fa6634d33b3d (diff) | |
download | chromium_src-eb98f911ef43bf5463621031d0e79a98e061b3cb.zip chromium_src-eb98f911ef43bf5463621031d0e79a98e061b3cb.tar.gz chromium_src-eb98f911ef43bf5463621031d0e79a98e061b3cb.tar.bz2 |
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}
Diffstat (limited to 'extensions/renderer/guest_view')
-rw-r--r-- | extensions/renderer/guest_view/mime_handler_view/mime_handler_view_container.cc | 5 |
1 files changed, 2 insertions, 3 deletions
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_)); } |