OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 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 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
6 | 6 |
7 #include "base/cocoa_protocols_mac.h" | 7 #include "base/cocoa_protocols_mac.h" |
8 #include "base/scoped_nsobject.h" | 8 #include "base/scoped_nsobject.h" |
9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
10 #include "net/base/cookie_monster.h" | 10 #include "net/base/cookie_monster.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 // the displayed cookie information. | 21 // the displayed cookie information. |
22 IBOutlet NSObjectController* objectController_; | 22 IBOutlet NSObjectController* objectController_; |
23 | 23 |
24 // This explicit reference to the layout tweaker is | 24 // This explicit reference to the layout tweaker is |
25 // required because it's necessary to reformat the view when | 25 // required because it's necessary to reformat the view when |
26 // the content object changes, since the content object may | 26 // the content object changes, since the content object may |
27 // alter the widths of some of the fields displayed in the view. | 27 // alter the widths of some of the fields displayed in the view. |
28 IBOutlet GTMUILocalizerAndLayoutTweaker* tweaker_; | 28 IBOutlet GTMUILocalizerAndLayoutTweaker* tweaker_; |
29 } | 29 } |
30 | 30 |
31 @property (readonly) BOOL hasExpiration; | 31 @property (nonatomic, readonly) BOOL hasExpiration; |
32 | 32 |
33 - (id)init; | 33 - (id)init; |
34 | 34 |
35 // Configures the cookie detail view that is managed by the controller | 35 // Configures the cookie detail view that is managed by the controller |
36 // to display the information about a single cookie, the information | 36 // to display the information about a single cookie, the information |
37 // for which is explicitly passed in the parameter |content|. | 37 // for which is explicitly passed in the parameter |content|. |
38 - (void)setContentObject:(id)content; | 38 - (void)setContentObject:(id)content; |
39 | 39 |
40 // Adjust the size of the view to exactly fix the information text fields | 40 // Adjust the size of the view to exactly fix the information text fields |
41 // that are visible inside it. | 41 // that are visible inside it. |
42 - (void)shrinkViewToFit; | 42 - (void)shrinkViewToFit; |
43 | 43 |
44 // Called by the cookie tree dialog to establish a binding between | 44 // Called by the cookie tree dialog to establish a binding between |
45 // the the detail view's object controller and the tree controller. | 45 // the the detail view's object controller and the tree controller. |
46 // This binding allows the cookie tree to use the detail view unmodified. | 46 // This binding allows the cookie tree to use the detail view unmodified. |
47 - (void)configureBindingsForTreeController:(NSTreeController*)controller; | 47 - (void)configureBindingsForTreeController:(NSTreeController*)controller; |
48 | 48 |
49 // Action sent by the expiration date popup when the user | 49 // Action sent by the expiration date popup when the user |
50 // selects the menu item "When I close my browser". | 50 // selects the menu item "When I close my browser". |
51 - (IBAction)setCookieDoesntHaveExplicitExpiration:(id)sender; | 51 - (IBAction)setCookieDoesntHaveExplicitExpiration:(id)sender; |
52 | 52 |
53 // Action sent by the expiration date popup when the user | 53 // Action sent by the expiration date popup when the user |
54 // selects the menu item with an explicit date/time of expiration. | 54 // selects the menu item with an explicit date/time of expiration. |
55 - (IBAction)setCookieHasExplicitExpiration:(id)sender; | 55 - (IBAction)setCookieHasExplicitExpiration:(id)sender; |
56 | 56 |
57 @end | 57 @end |
58 | 58 |
OLD | NEW |