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

Side by Side Diff: chrome/browser/ui/cocoa/content_settings/collected_cookies_mac.h

Issue 17593006: mac: Update clients of scoped_nsobject.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: iwyu, scoped_nsprotocol Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
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 #import <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 6
7 #include "base/memory/scoped_nsobject.h" 7 #include "base/mac/scoped_nsobject.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/browser/browsing_data/cookies_tree_model.h" 9 #include "chrome/browser/browsing_data/cookies_tree_model.h"
10 #include "chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.h" 10 #include "chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.h"
11 #import "chrome/browser/ui/cocoa/content_settings/cookie_tree_node.h" 11 #import "chrome/browser/ui/cocoa/content_settings/cookie_tree_node.h"
12 #include "content/public/browser/notification_observer.h" 12 #include "content/public/browser/notification_observer.h"
13 #include "content/public/browser/notification_registrar.h" 13 #include "content/public/browser/notification_registrar.h"
14 14
15 @class CollectedCookiesWindowController; 15 @class CollectedCookiesWindowController;
16 @class CookieDetailsViewController; 16 @class CookieDetailsViewController;
17 @class VerticalGradientView; 17 @class VerticalGradientView;
(...skipping 23 matching lines...) Expand all
41 private: 41 private:
42 // NotificationObserver implementation. 42 // NotificationObserver implementation.
43 virtual void Observe(int type, 43 virtual void Observe(int type,
44 const content::NotificationSource& source, 44 const content::NotificationSource& source,
45 const content::NotificationDetails& details) OVERRIDE; 45 const content::NotificationDetails& details) OVERRIDE;
46 46
47 content::NotificationRegistrar registrar_; 47 content::NotificationRegistrar registrar_;
48 48
49 scoped_ptr<ConstrainedWindowMac> window_; 49 scoped_ptr<ConstrainedWindowMac> window_;
50 50
51 scoped_nsobject<CollectedCookiesWindowController> sheet_controller_; 51 base::scoped_nsobject<CollectedCookiesWindowController> sheet_controller_;
52 52
53 DISALLOW_COPY_AND_ASSIGN(CollectedCookiesMac); 53 DISALLOW_COPY_AND_ASSIGN(CollectedCookiesMac);
54 }; 54 };
55 55
56 // Controller for the collected cookies dialog. This class stores an internal 56 // Controller for the collected cookies dialog. This class stores an internal
57 // copy of the CookiesTreeModel but with Cocoa-converted values (NSStrings and 57 // copy of the CookiesTreeModel but with Cocoa-converted values (NSStrings and
58 // NSImages instead of std::strings and ImageSkias). Doing this allows us to use 58 // NSImages instead of std::strings and ImageSkias). Doing this allows us to use
59 // bindings for the interface. Changes are pushed to this internal model via a 59 // bindings for the interface. Changes are pushed to this internal model via a
60 // very thin bridge (see cookies_window_controller.h). 60 // very thin bridge (see cookies_window_controller.h).
61 @interface CollectedCookiesWindowController : NSWindowController 61 @interface CollectedCookiesWindowController : NSWindowController
62 <NSOutlineViewDelegate, 62 <NSOutlineViewDelegate,
63 NSTabViewDelegate, 63 NSTabViewDelegate,
64 NSWindowDelegate> { 64 NSWindowDelegate> {
65 @private 65 @private
66 // Platform-independent model. 66 // Platform-independent model.
67 scoped_ptr<CookiesTreeModel> allowedTreeModel_; 67 scoped_ptr<CookiesTreeModel> allowedTreeModel_;
68 scoped_ptr<CookiesTreeModel> blockedTreeModel_; 68 scoped_ptr<CookiesTreeModel> blockedTreeModel_;
69 69
70 // Cached array of icons. 70 // Cached array of icons.
71 scoped_nsobject<NSMutableArray> icons_; 71 base::scoped_nsobject<NSMutableArray> icons_;
72 72
73 // Our Cocoa copy of the model. 73 // Our Cocoa copy of the model.
74 scoped_nsobject<CocoaCookieTreeNode> cocoaAllowedTreeModel_; 74 base::scoped_nsobject<CocoaCookieTreeNode> cocoaAllowedTreeModel_;
75 scoped_nsobject<CocoaCookieTreeNode> cocoaBlockedTreeModel_; 75 base::scoped_nsobject<CocoaCookieTreeNode> cocoaBlockedTreeModel_;
76 76
77 BOOL allowedCookiesButtonsEnabled_; 77 BOOL allowedCookiesButtonsEnabled_;
78 BOOL blockedCookiesButtonsEnabled_; 78 BOOL blockedCookiesButtonsEnabled_;
79 79
80 IBOutlet NSTreeController* allowedTreeController_; 80 IBOutlet NSTreeController* allowedTreeController_;
81 IBOutlet NSTreeController* blockedTreeController_; 81 IBOutlet NSTreeController* blockedTreeController_;
82 IBOutlet NSOutlineView* allowedOutlineView_; 82 IBOutlet NSOutlineView* allowedOutlineView_;
83 IBOutlet NSOutlineView* blockedOutlineView_; 83 IBOutlet NSOutlineView* blockedOutlineView_;
84 IBOutlet VerticalGradientView* infoBar_; 84 IBOutlet VerticalGradientView* infoBar_;
85 IBOutlet NSImageView* infoBarIcon_; 85 IBOutlet NSImageView* infoBarIcon_;
86 IBOutlet NSTextField* infoBarText_; 86 IBOutlet NSTextField* infoBarText_;
87 IBOutlet NSTabView* tabView_; 87 IBOutlet NSTabView* tabView_;
88 IBOutlet NSScrollView* blockedScrollView_; 88 IBOutlet NSScrollView* blockedScrollView_;
89 IBOutlet NSTextField* blockedCookiesText_; 89 IBOutlet NSTextField* blockedCookiesText_;
90 IBOutlet NSView* cookieDetailsViewPlaceholder_; 90 IBOutlet NSView* cookieDetailsViewPlaceholder_;
91 91
92 scoped_nsobject<NSViewAnimation> animation_; 92 base::scoped_nsobject<NSViewAnimation> animation_;
93 93
94 scoped_nsobject<CookieDetailsViewController> detailsViewController_; 94 base::scoped_nsobject<CookieDetailsViewController> detailsViewController_;
95 95
96 content::WebContents* webContents_; // weak 96 content::WebContents* webContents_; // weak
97 97
98 CollectedCookiesMac* collectedCookiesMac_; // weak 98 CollectedCookiesMac* collectedCookiesMac_; // weak
99 99
100 BOOL infoBarVisible_; 100 BOOL infoBarVisible_;
101 101
102 BOOL contentSettingsChanged_; 102 BOOL contentSettingsChanged_;
103 } 103 }
104 104
(...skipping 28 matching lines...) Expand all
133 - (CocoaCookieTreeNode*)cocoaBlockedTreeModel; 133 - (CocoaCookieTreeNode*)cocoaBlockedTreeModel;
134 - (void)setCocoaAllowedTreeModel:(CocoaCookieTreeNode*)model; 134 - (void)setCocoaAllowedTreeModel:(CocoaCookieTreeNode*)model;
135 - (void)setCocoaBlockedTreeModel:(CocoaCookieTreeNode*)model; 135 - (void)setCocoaBlockedTreeModel:(CocoaCookieTreeNode*)model;
136 136
137 // Returns the |allowedTreeModel_| and |blockedTreeModel_|. 137 // Returns the |allowedTreeModel_| and |blockedTreeModel_|.
138 - (CookiesTreeModel*)allowedTreeModel; 138 - (CookiesTreeModel*)allowedTreeModel;
139 - (CookiesTreeModel*)blockedTreeModel; 139 - (CookiesTreeModel*)blockedTreeModel;
140 140
141 - (void)loadTreeModelFromWebContents; 141 - (void)loadTreeModelFromWebContents;
142 @end 142 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698