Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(242)

Side by Side Diff: chrome/browser/cocoa/cookies_window_controller.h

Issue 599003: [Mac] Add local storage nodes to the cookie manager (Closed)
Patch Set: Final Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/cookie_tree_node.mm ('k') | chrome/browser/cocoa/cookies_window_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698