Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(802)

Unified Diff: content/browser/renderer_host/render_view_host.cc

Issue 9517010: Change panels to be able to turn off autoresize. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_view_host.cc
diff --git a/content/browser/renderer_host/render_view_host.cc b/content/browser/renderer_host/render_view_host.cc
index e193dc2e71f586ccbb9a6cb3ec494e4606e7833a..3fc9e9fddcc16720c734313e5177679325900be8 100644
--- a/content/browser/renderer_host/render_view_host.cc
+++ b/content/browser/renderer_host/render_view_host.cc
@@ -1414,6 +1414,11 @@ void RenderViewHost::EnableAutoResize(const gfx::Size& min_size,
Send(new ViewMsg_EnableAutoResize(routing_id(), min_size, max_size));
}
+void RenderViewHost::DisableAutoResize(const gfx::Size& new_size) {
+ SetShouldAutoResize(false);
+ Send(new ViewMsg_DisableAutoResize(routing_id(), new_size));
+}
+
void RenderViewHost::ExecuteCustomContextMenuCommand(
int action, const content::CustomContextMenuContext& context) {
Send(new ViewMsg_CustomContextMenuAction(routing_id(), context, action));

Powered by Google App Engine
This is Rietveld 408576698