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

Unified Diff: apps/ui/web_contents_sizer.mm

Issue 503233003: Add AppDelegate::ResizeWebContents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Call the right function 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « apps/ui/web_contents_sizer.cc ('k') | chrome/browser/prerender/prerender_contents.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/ui/web_contents_sizer.mm
diff --git a/apps/ui/web_contents_sizer.mm b/apps/ui/web_contents_sizer.mm
deleted file mode 100644
index f57d75c7b3121e8106b6ad161f041246e5bec09c..0000000000000000000000000000000000000000
--- a/apps/ui/web_contents_sizer.mm
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "apps/ui/web_contents_sizer.h"
-
-#import <Cocoa/Cocoa.h>
-
-#include "content/public/browser/web_contents.h"
-
-namespace apps {
-
-void ResizeWebContents(content::WebContents* web_contents,
- const gfx::Size& new_size) {
- NSView* view = web_contents->GetNativeView();
- NSRect old_wcv_frame = [view frame];
- CGFloat new_x = old_wcv_frame.origin.x;
- CGFloat new_y =
- old_wcv_frame.origin.y + (old_wcv_frame.size.height - new_size.height());
- NSRect new_wcv_frame =
- NSMakeRect(new_x, new_y, new_size.width(), new_size.height());
- [view setFrame:new_wcv_frame];
-}
-
-} // namespace apps
« no previous file with comments | « apps/ui/web_contents_sizer.cc ('k') | chrome/browser/prerender/prerender_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698