OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_COCOA_INTENTS_WEB_INTENT_VIEW_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_INTENTS_WEB_INTENT_VIEW_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_COCOA_INTENTS_WEB_INTENT_VIEW_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_INTENTS_WEB_INTENT_VIEW_CONTROLLER_H_ |
7 | 7 |
8 #include <Cocoa/Cocoa.h> | 8 #include <Cocoa/Cocoa.h> |
9 | 9 |
10 // Abstract base class for all web intent view controllers. | 10 // Abstract base class for all web intent view controllers. |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 // Gets the size of the view for the given width. |innerWidth| and the returned | 23 // Gets the size of the view for the given width. |innerWidth| and the returned |
24 // size does not include space for padding around the edge of the view. | 24 // size does not include space for padding around the edge of the view. |
25 // This method must be overridden if |-sizeToFitAndLayout| is not. | 25 // This method must be overridden if |-sizeToFitAndLayout| is not. |
26 - (NSSize)minimumSizeForInnerWidth:(CGFloat)innerWidth; | 26 - (NSSize)minimumSizeForInnerWidth:(CGFloat)innerWidth; |
27 | 27 |
28 // Layout subviews in the given frame. | 28 // Layout subviews in the given frame. |
29 // This method must be overridden if |-sizeToFitAndLayout| is not. | 29 // This method must be overridden if |-sizeToFitAndLayout| is not. |
30 - (void)layoutSubviewsWithinFrame:(NSRect)innerFrame; | 30 - (void)layoutSubviewsWithinFrame:(NSRect)innerFrame; |
31 | 31 |
| 32 // Called after the view has been removed from the super view. Subclasses can |
| 33 // override this to clear and state. |
| 34 - (void)viewRemovedFromSuperview; |
| 35 |
32 @end | 36 @end |
33 | 37 |
34 #endif // CHROME_BROWSER_UI_COCOA_INTENTS_WEB_INTENT_VIEW_CONTROLLER_H_ | 38 #endif // CHROME_BROWSER_UI_COCOA_INTENTS_WEB_INTENT_VIEW_CONTROLLER_H_ |
OLD | NEW |