OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_COCOA_DISCLOSURE_VIEW_CONTROLLER_ |
| 6 #define CHROME_BROWSER_COCOA_DISCLOSURE_VIEW_CONTROLLER_ |
| 7 |
| 8 #import <Cocoa/Cocoa.h> |
| 9 |
| 10 @class DisclosureViewState; |
| 11 |
| 12 // A view class that provides a disclosure triangle that controls the size |
| 13 // of the view. Toggling the disclosure triangle animates the change in |
| 14 // size of the view. The |openHeight| is initialized from the initial size |
| 15 // of the view. |disclosureState| is initialized as |NSOnState| (of type |
| 16 // NSCellStateValue) which corresponds to "open". |
| 17 @interface DisclosureViewController : NSViewController { |
| 18 @private |
| 19 // The |disclosureState_| is instantiated from within |awakeFromNib|. |
| 20 // We do not hold it as a scoped_nsobject because it is exposed as a KVO |
| 21 // compliant property. |
| 22 DisclosureViewState* disclosureState_; // strong reference |
| 23 CGFloat openHeight_; |
| 24 } |
| 25 |
| 26 @property (nonatomic, retain) DisclosureViewState* disclosureState; |
| 27 |
| 28 @end |
| 29 |
| 30 #endif // CHROME_BROWSER_COCOA_DISCLOSURE_VIEW_CONTROLLER_ |
OLD | NEW |