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 "app/tree_model.h" | 7 #include "app/tree_model.h" |
8 #include "base/cocoa_protocols_mac.h" | 8 #include "base/cocoa_protocols_mac.h" |
9 #include "base/scoped_nsobject.h" | 9 #include "base/scoped_nsobject.h" |
10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 // Our Cocoa copy of the model. | 87 // Our Cocoa copy of the model. |
88 scoped_nsobject<CocoaCookieTreeNode> cocoaTreeModel_; | 88 scoped_nsobject<CocoaCookieTreeNode> cocoaTreeModel_; |
89 | 89 |
90 // A flag indicating whether or not the "Remove" button should be enabled. | 90 // A flag indicating whether or not the "Remove" button should be enabled. |
91 BOOL removeButtonEnabled_; | 91 BOOL removeButtonEnabled_; |
92 | 92 |
93 IBOutlet NSTreeController* treeController_; | 93 IBOutlet NSTreeController* treeController_; |
94 IBOutlet NSOutlineView* outlineView_; | 94 IBOutlet NSOutlineView* outlineView_; |
95 IBOutlet NSSearchField* searchField_; | 95 IBOutlet NSSearchField* searchField_; |
96 | 96 |
| 97 // These views are laid out inside a NSBox and are shown/hidden to detail |
| 98 // information about the selected node. |
| 99 IBOutlet NSView* cookieInfo_; |
| 100 IBOutlet NSView* localStorageInfo_; |
| 101 |
97 Profile* profile_; // weak | 102 Profile* profile_; // weak |
98 BrowsingDataLocalStorageHelper* storageHelper_; // weak | 103 BrowsingDataLocalStorageHelper* storageHelper_; // weak |
99 } | 104 } |
100 @property (assign, nonatomic) BOOL removeButtonEnabled; | 105 @property (assign, nonatomic) BOOL removeButtonEnabled; |
101 @property (readonly, nonatomic) NSTreeController* treeController; | 106 @property (readonly, nonatomic) NSTreeController* treeController; |
102 | 107 |
103 // Designated initializer. Profile cannot be NULL. | 108 // Designated initializer. Profile cannot be NULL. |
104 - (id)initWithProfile:(Profile*)profile | 109 - (id)initWithProfile:(Profile*)profile |
105 storageHelper:(BrowsingDataLocalStorageHelper*)storageHelper; | 110 storageHelper:(BrowsingDataLocalStorageHelper*)storageHelper; |
106 | 111 |
(...skipping 16 matching lines...) Expand all Loading... |
123 | 128 |
124 // Returns the treeModel_. | 129 // Returns the treeModel_. |
125 - (CookiesTreeModel*)treeModel; | 130 - (CookiesTreeModel*)treeModel; |
126 | 131 |
127 @end | 132 @end |
128 | 133 |
129 @interface CookiesWindowController (UnitTesting) | 134 @interface CookiesWindowController (UnitTesting) |
130 - (void)clearBrowsingDataNotification:(NSNotification*)notif; | 135 - (void)clearBrowsingDataNotification:(NSNotification*)notif; |
131 - (CookiesTreeModelObserverBridge*)modelObserver; | 136 - (CookiesTreeModelObserverBridge*)modelObserver; |
132 - (NSArray*)icons; | 137 - (NSArray*)icons; |
| 138 - (NSView*)cookieInfoView; |
| 139 - (NSView*)localStorageInfoView; |
133 - (void)loadTreeModelFromProfile; | 140 - (void)loadTreeModelFromProfile; |
134 @end | 141 @end |
OLD | NEW |