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

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

Issue 817273003: [Mac] Make ConstrainedWebDialog resize with parent window (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 | « no previous file | chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_sheet.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/constrained_web_dialog_delegate_mac.mm
diff --git a/chrome/browser/ui/cocoa/constrained_web_dialog_delegate_mac.mm b/chrome/browser/ui/cocoa/constrained_web_dialog_delegate_mac.mm
index 0589797853c3c93cfbd9d4b10ddf01a155b565ef..629439c272055e024874cb54dd798f2658c8dce9 100644
--- a/chrome/browser/ui/cocoa/constrained_web_dialog_delegate_mac.mm
+++ b/chrome/browser/ui/cocoa/constrained_web_dialog_delegate_mac.mm
@@ -7,7 +7,7 @@
#import <Cocoa/Cocoa.h>
#include "base/mac/scoped_nsobject.h"
-#import "chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_sheet.h"
+#import "chrome/browser/ui/cocoa/constrained_window/constrained_window_web_dialog_sheet.h"
#import "chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_window.h"
#import "chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.h"
#include "content/public/browser/web_contents.h"
@@ -117,10 +117,13 @@ ConstrainedWebDialogDelegateViewMac::ConstrainedWebDialogDelegateViewMac(
window_.reset(
[[ConstrainedWindowCustomWindow alloc] initWithContentRect:frame]);
[GetWebContents()->GetNativeView() setFrame:frame];
+ [GetWebContents()->GetNativeView() setAutoresizingMask:
+ NSViewWidthSizable|NSViewHeightSizable];
[[window_ contentView] addSubview:GetWebContents()->GetNativeView()];
- base::scoped_nsobject<CustomConstrainedWindowSheet> sheet(
- [[CustomConstrainedWindowSheet alloc] initWithCustomWindow:window_]);
+ base::scoped_nsobject<WebDialogConstrainedWindowSheet> sheet(
+ [[WebDialogConstrainedWindowSheet alloc] initWithCustomWindow:window_
+ webDialogDelegate:delegate]);
constrained_window_.reset(new ConstrainedWindowMac(
this, web_contents, sheet));
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_sheet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698