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

Unified Diff: chrome/browser/ui/cocoa/browser_window_controller_private.mm

Issue 1858063002: Remove Mac NPAPI things (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more build fixes Created 4 years, 8 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/cocoa/browser_window_controller_private.mm
diff --git a/chrome/browser/ui/cocoa/browser_window_controller_private.mm b/chrome/browser/ui/cocoa/browser_window_controller_private.mm
index 85d1f5008fbf48830b32c17e7dd69f1341d6c71d..5961fca36ccfe979413536ec9b592a9733eb89ef 100644
--- a/chrome/browser/ui/cocoa/browser_window_controller_private.mm
+++ b/chrome/browser/ui/cocoa/browser_window_controller_private.mm
@@ -310,22 +310,8 @@ willPositionSheet:(NSWindow*)sheet
NSView* tabContentView = [self tabContentArea];
NSRect tabContentFrame = [tabContentView frame];
- bool contentShifted =
- NSMaxY(tabContentFrame) != NSMaxY(newFrame) ||
- NSMinX(tabContentFrame) != NSMinX(newFrame);
-
tabContentFrame = newFrame;
[tabContentView setFrame:tabContentFrame];
-
- // If the relayout shifts the content area up or down, let the renderer know.
- if (contentShifted) {
- WebContents* contents = [self webContents];
- if (contents) {
- RenderWidgetHostView* rwhv = contents->GetRenderWidgetHostView();
- if (rwhv)
- rwhv->WindowFrameChanged();
- }
- }
}
- (void)adjustToolbarAndBookmarkBarForCompression:(CGFloat)compression {
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_controller.mm ('k') | chrome/browser/ui/cocoa/extensions/extension_popup_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698