summaryrefslogtreecommitdiffstats
path: root/extensions/renderer/guest_view
diff options
context:
space:
mode:
authorpaulmeyer <paulmeyer@chromium.org>2015-01-23 09:13:38 -0800
committerCommit bot <commit-bot@chromium.org>2015-01-23 17:14:51 +0000
commiteb98f911ef43bf5463621031d0e79a98e061b3cb (patch)
treee7ba01d6f7ceadcd94941ed1c6db7b857727c57b /extensions/renderer/guest_view
parentfa52466b75af4dc5cf17354b4912fa6634d33b3d (diff)
downloadchromium_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.cc5
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_));
}