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

Unified Diff: chrome/browser/ui/web_contents_sizer.mm

Issue 2695093005: Remove RWHV::SetBounds() from the public API, and make comments clearer.
Patch Set: Resolve Android compile issue (missed one rename). Created 3 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: chrome/browser/ui/web_contents_sizer.mm
diff --git a/chrome/browser/ui/web_contents_sizer.mm b/chrome/browser/ui/web_contents_sizer.mm
index bdb78960da21d6fdfbe00ae6d7abc452dcfbcb92..fc0d5fdec1c861056c0dd951d0fc0e27b4fd1dee 100644
--- a/chrome/browser/ui/web_contents_sizer.mm
+++ b/chrome/browser/ui/web_contents_sizer.mm
@@ -10,6 +10,9 @@
void ResizeWebContents(content::WebContents* web_contents,
const gfx::Rect& new_bounds) {
+ // TODO(miu): This is a layering violation, since only the RWHV should know
+ // whether the resize operation is valid and, if so, execute it.
+ // http://crbug.com/73362
NSView* view = web_contents->GetNativeView();
NSRect old_wcv_frame = [view frame];
CGFloat new_x = old_wcv_frame.origin.x;

Powered by Google App Engine
This is Rietveld 408576698