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

Unified Diff: chrome/browser/tab_contents/tab_contents_view_mac.mm

Issue 8520036: Revert 110262 - Have ExtensionHost use TabContents instead of RenderViewHost. Try #2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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 | « chrome/browser/tab_contents/tab_contents_view_mac.h ('k') | chrome/browser/task_manager/task_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/tab_contents_view_mac.mm
===================================================================
--- chrome/browser/tab_contents/tab_contents_view_mac.mm (revision 110269)
+++ chrome/browser/tab_contents/tab_contents_view_mac.mm (working copy)
@@ -56,9 +56,6 @@
- (void)clearTabContentsView;
- (void)closeTabAfterEvent;
- (void)viewDidBecomeFirstResponder:(NSNotification*)notification;
-// Notify the RenderWidgetHost that the frame was updated so it can resize
-// its contents.
-- (void)renderWidgetHostWasResized;
@end
namespace tab_contents_view_mac {
@@ -85,6 +82,7 @@
void TabContentsViewMac::CreateView(const gfx::Size& initial_size) {
TabContentsViewCocoa* view =
[[TabContentsViewCocoa alloc] initWithTabContentsViewMac:this];
+ [view setAutoresizingMask:(NSViewWidthSizable | NSViewHeightSizable)];
cocoa_view_.reset(view);
}
@@ -510,19 +508,6 @@
[dragSource_ startDrag];
}
-- (void)setFrameWithDeferredUpdate:(NSRect)frameRect {
- [super setFrame:frameRect];
- [self performSelector:@selector(renderWidgetHostWasResized)
- withObject:nil
- afterDelay:0];
-}
-
-- (void)renderWidgetHostWasResized {
- TabContents* tabContents = [self tabContents];
- if (tabContents->render_view_host())
- tabContents->render_view_host()->WasResized();
-}
-
// NSDraggingSource methods
// Returns what kind of drag operations are available. This is a required
Property changes on: chrome/browser/tab_contents/tab_contents_view_mac.mm
___________________________________________________________________
Added: svn:mergeinfo
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_view_mac.h ('k') | chrome/browser/task_manager/task_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698