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 #import "base/mac/cocoa_protocols.h" | 7 #import "base/mac/cocoa_protocols.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 "chrome/browser/cookies_tree_model.h" | 10 #include "chrome/browser/cookies_tree_model.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 IBOutlet NSSplitView* splitView_; | 80 IBOutlet NSSplitView* splitView_; |
81 IBOutlet NSScrollView* lowerScrollView_; | 81 IBOutlet NSScrollView* lowerScrollView_; |
82 IBOutlet NSTextField* blockedCookiesText_; | 82 IBOutlet NSTextField* blockedCookiesText_; |
83 | 83 |
84 scoped_nsobject<NSViewAnimation> animation_; | 84 scoped_nsobject<NSViewAnimation> animation_; |
85 | 85 |
86 TabContents* tabContents_; // weak | 86 TabContents* tabContents_; // weak |
87 | 87 |
88 BOOL infoBarVisible_; | 88 BOOL infoBarVisible_; |
89 } | 89 } |
90 @property (readonly, nonatomic) NSTreeController* allowedTreeController; | 90 @property(readonly, nonatomic) NSTreeController* allowedTreeController; |
91 @property (readonly, nonatomic) NSTreeController* blockedTreeController; | 91 @property(readonly, nonatomic) NSTreeController* blockedTreeController; |
92 | 92 |
93 @property (assign, nonatomic) BOOL allowedCookiesButtonsEnabled; | 93 @property(assign, nonatomic) BOOL allowedCookiesButtonsEnabled; |
94 @property (assign, nonatomic) BOOL blockedCookiesButtonsEnabled; | 94 @property(assign, nonatomic) BOOL blockedCookiesButtonsEnabled; |
95 | 95 |
96 // Designated initializer. TabContents cannot be NULL. | 96 // Designated initializer. TabContents cannot be NULL. |
97 - (id)initWithTabContents:(TabContents*)tabContents; | 97 - (id)initWithTabContents:(TabContents*)tabContents; |
98 | 98 |
99 // Closes the sheet and ends the modal loop. This will also cleanup the memory. | 99 // Closes the sheet and ends the modal loop. This will also cleanup the memory. |
100 - (IBAction)closeSheet:(id)sender; | 100 - (IBAction)closeSheet:(id)sender; |
101 | 101 |
102 - (IBAction)allowOrigin:(id)sender; | 102 - (IBAction)allowOrigin:(id)sender; |
103 - (IBAction)allowForSessionFromOrigin:(id)sender; | 103 - (IBAction)allowForSessionFromOrigin:(id)sender; |
104 - (IBAction)blockOrigin:(id)sender; | 104 - (IBAction)blockOrigin:(id)sender; |
105 | 105 |
106 // NSSplitView delegate methods: | 106 // NSSplitView delegate methods: |
107 - (CGFloat) splitView:(NSSplitView *)sender | 107 - (CGFloat) splitView:(NSSplitView *)sender |
108 constrainMinCoordinate:(CGFloat)proposedMin | 108 constrainMinCoordinate:(CGFloat)proposedMin |
109 ofSubviewAt:(NSInteger)offset; | 109 ofSubviewAt:(NSInteger)offset; |
110 - (BOOL)splitView:(NSSplitView *)sender canCollapseSubview:(NSView *)subview; | 110 - (BOOL)splitView:(NSSplitView *)sender canCollapseSubview:(NSView *)subview; |
111 | 111 |
112 // Returns the cocoaAllowedTreeModel_ and cocoaBlockedTreeModel_. | 112 // Returns the cocoaAllowedTreeModel_ and cocoaBlockedTreeModel_. |
113 - (CocoaCookieTreeNode*)cocoaAllowedTreeModel; | 113 - (CocoaCookieTreeNode*)cocoaAllowedTreeModel; |
114 - (CocoaCookieTreeNode*)cocoaBlockedTreeModel; | 114 - (CocoaCookieTreeNode*)cocoaBlockedTreeModel; |
115 - (void)setCocoaAllowedTreeModel:(CocoaCookieTreeNode*)model; | 115 - (void)setCocoaAllowedTreeModel:(CocoaCookieTreeNode*)model; |
116 - (void)setCocoaBlockedTreeModel:(CocoaCookieTreeNode*)model; | 116 - (void)setCocoaBlockedTreeModel:(CocoaCookieTreeNode*)model; |
117 | 117 |
118 // Returns the allowedTreeModel_ and blockedTreeModel_. | 118 // Returns the allowedTreeModel_ and blockedTreeModel_. |
119 - (CookiesTreeModel*)allowedTreeModel; | 119 - (CookiesTreeModel*)allowedTreeModel; |
120 - (CookiesTreeModel*)blockedTreeModel; | 120 - (CookiesTreeModel*)blockedTreeModel; |
121 | 121 |
122 - (void)loadTreeModelFromTabContents; | 122 - (void)loadTreeModelFromTabContents; |
123 @end | 123 @end |
OLD | NEW |