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

Unified Diff: chrome/browser/cocoa/disclosure_view_controller.h

Issue 558066: Autofill dialog for the Mac. This is UI only at this point. The UI is not h... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 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
« no previous file with comments | « chrome/browser/autofill/credit_card.cc ('k') | chrome/browser/cocoa/disclosure_view_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/disclosure_view_controller.h
===================================================================
--- chrome/browser/cocoa/disclosure_view_controller.h (revision 0)
+++ chrome/browser/cocoa/disclosure_view_controller.h (revision 0)
@@ -0,0 +1,30 @@
+// Copyright (c) 2010 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_COCOA_DISCLOSURE_VIEW_CONTROLLER_
+#define CHROME_BROWSER_COCOA_DISCLOSURE_VIEW_CONTROLLER_
+
+#import <Cocoa/Cocoa.h>
+
+@class DisclosureViewState;
+
+// A view class that provides a disclosure triangle that controls the size
+// of the view. Toggling the disclosure triangle animates the change in
+// size of the view. The |openHeight| is initialized from the initial size
+// of the view. |disclosureState| is initialized as |NSOnState| (of type
+// NSCellStateValue) which corresponds to "open".
+@interface DisclosureViewController : NSViewController {
+ @private
+ // The |disclosureState_| is instantiated from within |awakeFromNib|.
+ // We do not hold it as a scoped_nsobject because it is exposed as a KVO
+ // compliant property.
+ DisclosureViewState* disclosureState_; // strong reference
+ CGFloat openHeight_;
+}
+
+@property (nonatomic, retain) DisclosureViewState* disclosureState;
+
+@end
+
+#endif // CHROME_BROWSER_COCOA_DISCLOSURE_VIEW_CONTROLLER_
« no previous file with comments | « chrome/browser/autofill/credit_card.cc ('k') | chrome/browser/cocoa/disclosure_view_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698