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

Unified Diff: chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.h

Issue 15645004: [rAC] Allow sub-views to trigger layout reflow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review issues. Created 7 years, 7 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/autofill/autofill_dialog_cocoa.h
diff --git a/chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.h b/chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.h
index c39f13d873e8359bf4dd2c5c23c5b98686c399f7..064130089dc2ec07781eeae8ddf8af24409736f5 100644
--- a/chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.h
+++ b/chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.h
@@ -9,6 +9,7 @@
#include "base/memory/scoped_ptr.h"
#include "chrome/browser/ui/autofill/autofill_dialog_types.h"
#include "chrome/browser/ui/autofill/autofill_dialog_view.h"
+#import "chrome/browser/ui/cocoa/autofill/autofill_layout.h"
#include "chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.h"
namespace content {
@@ -71,8 +72,8 @@ class AutofillDialogCocoa : public AutofillDialogView,
} // autofill
-@interface AutofillDialogWindowController : NSWindowController
- <NSWindowDelegate> {
+@interface AutofillDialogWindowController :
+ NSWindowController<NSWindowDelegate, AutofillLayout> {
@private
content::WebContents* webContents_; // weak.
autofill::AutofillDialogCocoa* autofillDialog_; // weak.
@@ -86,6 +87,9 @@ class AutofillDialogCocoa : public AutofillDialogView,
- (id)initWithWebContents:(content::WebContents*)webContents
autofillDialog:(autofill::AutofillDialogCocoa*)autofillDialog;
+// A child view request re-layouting.
+- (void)requestRelayout;
+
// Validate data. If it is valid, notify the controller that the user would
// like to use the data.
- (IBAction)accept:(id)sender;

Powered by Google App Engine
This is Rietveld 408576698