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

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 427883002: <webview>: Move autosize from content to chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_frame_url
Patch Set: Works Created 6 years, 4 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 unified diff | Download patch
OLDNEW
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 "content/browser/renderer_host/render_view_host_impl.h" 5 #include "content/browser/renderer_host/render_view_host_impl.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 1459 matching lines...) Expand 10 before | Expand all | Expand 10 after
1470 1470
1471 void RenderViewHostImpl::EnableAutoResize(const gfx::Size& min_size, 1471 void RenderViewHostImpl::EnableAutoResize(const gfx::Size& min_size,
1472 const gfx::Size& max_size) { 1472 const gfx::Size& max_size) {
1473 SetShouldAutoResize(true); 1473 SetShouldAutoResize(true);
1474 Send(new ViewMsg_EnableAutoResize(GetRoutingID(), min_size, max_size)); 1474 Send(new ViewMsg_EnableAutoResize(GetRoutingID(), min_size, max_size));
1475 } 1475 }
1476 1476
1477 void RenderViewHostImpl::DisableAutoResize(const gfx::Size& new_size) { 1477 void RenderViewHostImpl::DisableAutoResize(const gfx::Size& new_size) {
1478 SetShouldAutoResize(false); 1478 SetShouldAutoResize(false);
1479 Send(new ViewMsg_DisableAutoResize(GetRoutingID(), new_size)); 1479 Send(new ViewMsg_DisableAutoResize(GetRoutingID(), new_size));
1480 if (!new_size.IsEmpty())
1481 GetView()->SetSize(new_size);
1480 } 1482 }
1481 1483
1482 void RenderViewHostImpl::CopyImageAt(int x, int y) { 1484 void RenderViewHostImpl::CopyImageAt(int x, int y) {
1483 Send(new ViewMsg_CopyImageAt(GetRoutingID(), x, y)); 1485 Send(new ViewMsg_CopyImageAt(GetRoutingID(), x, y));
1484 } 1486 }
1485 1487
1486 void RenderViewHostImpl::SaveImageAt(int x, int y) { 1488 void RenderViewHostImpl::SaveImageAt(int x, int y) {
1487 Send(new ViewMsg_SaveImageAt(GetRoutingID(), x, y)); 1489 Send(new ViewMsg_SaveImageAt(GetRoutingID(), x, y));
1488 } 1490 }
1489 1491
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
1588 FrameTree* frame_tree = delegate_->GetFrameTree(); 1590 FrameTree* frame_tree = delegate_->GetFrameTree();
1589 1591
1590 frame_tree->ResetForMainFrameSwap(); 1592 frame_tree->ResetForMainFrameSwap();
1591 } 1593 }
1592 1594
1593 void RenderViewHostImpl::SelectWordAroundCaret() { 1595 void RenderViewHostImpl::SelectWordAroundCaret() {
1594 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); 1596 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID()));
1595 } 1597 }
1596 1598
1597 } // namespace content 1599 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698