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

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

Issue 14704004: [Autofill] Add Details Section (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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/autofill/autofill_layout_view.h
diff --git a/chrome/browser/ui/cocoa/autofill/autofill_layout_view.h b/chrome/browser/ui/cocoa/autofill/autofill_layout_view.h
new file mode 100644
index 0000000000000000000000000000000000000000..4f2a746a61b951b41a8a024e473d237875e08d02
--- /dev/null
+++ b/chrome/browser/ui/cocoa/autofill/autofill_layout_view.h
@@ -0,0 +1,28 @@
+// Copyright (c) 2013 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.
+
+#ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_LAYOUT_VIEW_H_
+#define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_LAYOUT_VIEW_H_
+
+#import <Cocoa/Cocoa.h>
+
+#include "base/memory/scoped_ptr.h"
+
+class SimpleGridLayout;
+
+// A view that carries its own layout manager. Re-layouts on setFrame:.
+@interface AutofillLayoutView : NSView {
sail 2013/05/01 17:12:36 It might be nice to generalize this, something lik
groby-ooo-7-16 2013/05/01 20:37:44 Done. (in separate CL)
+ @private
+ scoped_ptr<SimpleGridLayout> layout_;
+}
+
+// Sets a layout manager and takes ownership of it.
+- (void)setLayoutManager:(SimpleGridLayout*) layout;
sail 2013/05/01 17:12:36 since this takes ownership, pass a scoped_ptr inst
groby-ooo-7-16 2013/05/01 20:37:44 Done. (in separate CL) On 2013/05/01 17:12:36, sai
+- (void)setFrame:(NSRect)frame;
+- (void)performLayout;
+- (CGFloat)preferredHeightForWidth:(CGFloat)width;
+
+@end
+
+#endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_LAYOUT_VIEW_H_

Powered by Google App Engine
This is Rietveld 408576698