OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/memory/scoped_nsobject.h" | 8 #include "base/memory/scoped_nsobject.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "chrome/browser/cookies_tree_model.h" | 10 #include "chrome/browser/cookies_tree_model.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 | 26 |
27 void OnSheetDidEnd(NSWindow* sheet); | 27 void OnSheetDidEnd(NSWindow* sheet); |
28 | 28 |
29 // ConstrainedWindowMacDelegateCustomSheet implementation. | 29 // ConstrainedWindowMacDelegateCustomSheet implementation. |
30 virtual void DeleteDelegate(); | 30 virtual void DeleteDelegate(); |
31 | 31 |
32 private: | 32 private: |
33 virtual ~CollectedCookiesMac(); | 33 virtual ~CollectedCookiesMac(); |
34 | 34 |
35 // NotificationObserver implementation. | 35 // NotificationObserver implementation. |
36 virtual void Observe(NotificationType type, | 36 virtual void Observe(int type, |
37 const NotificationSource& source, | 37 const NotificationSource& source, |
38 const NotificationDetails& details); | 38 const NotificationDetails& details); |
39 | 39 |
40 NotificationRegistrar registrar_; | 40 NotificationRegistrar registrar_; |
41 | 41 |
42 ConstrainedWindow* window_; | 42 ConstrainedWindow* window_; |
43 | 43 |
44 TabContents* tab_contents_; | 44 TabContents* tab_contents_; |
45 | 45 |
46 CollectedCookiesWindowController* sheet_controller_; | 46 CollectedCookiesWindowController* sheet_controller_; |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 - (CocoaCookieTreeNode*)cocoaBlockedTreeModel; | 115 - (CocoaCookieTreeNode*)cocoaBlockedTreeModel; |
116 - (void)setCocoaAllowedTreeModel:(CocoaCookieTreeNode*)model; | 116 - (void)setCocoaAllowedTreeModel:(CocoaCookieTreeNode*)model; |
117 - (void)setCocoaBlockedTreeModel:(CocoaCookieTreeNode*)model; | 117 - (void)setCocoaBlockedTreeModel:(CocoaCookieTreeNode*)model; |
118 | 118 |
119 // Returns the |allowedTreeModel_| and |blockedTreeModel_|. | 119 // Returns the |allowedTreeModel_| and |blockedTreeModel_|. |
120 - (CookiesTreeModel*)allowedTreeModel; | 120 - (CookiesTreeModel*)allowedTreeModel; |
121 - (CookiesTreeModel*)blockedTreeModel; | 121 - (CookiesTreeModel*)blockedTreeModel; |
122 | 122 |
123 - (void)loadTreeModelFromTabContents; | 123 - (void)loadTreeModelFromTabContents; |
124 @end | 124 @end |
OLD | NEW |