| OLD | NEW |
| 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/mac/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" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 class CollectedCookiesMac : public ConstrainedWindowMacDelegate, | 26 class CollectedCookiesMac : public ConstrainedWindowMacDelegate, |
| 27 public content::NotificationObserver { | 27 public content::NotificationObserver { |
| 28 public: | 28 public: |
| 29 CollectedCookiesMac(content::WebContents* web_contents); | 29 CollectedCookiesMac(content::WebContents* web_contents); |
| 30 virtual ~CollectedCookiesMac(); | 30 virtual ~CollectedCookiesMac(); |
| 31 | 31 |
| 32 void PerformClose(); | 32 void PerformClose(); |
| 33 | 33 |
| 34 // ConstrainedWindowMacDelegate implementation. | 34 // ConstrainedWindowMacDelegate implementation. |
| 35 virtual void OnConstrainedWindowClosed( | 35 virtual void OnConstrainedWindowClosed( |
| 36 ConstrainedWindowMac* window) OVERRIDE; | 36 ConstrainedWindowMac* window) override; |
| 37 | 37 |
| 38 CollectedCookiesWindowController* sheet_controller() const { | 38 CollectedCookiesWindowController* sheet_controller() const { |
| 39 return sheet_controller_.get(); | 39 return sheet_controller_.get(); |
| 40 } | 40 } |
| 41 | 41 |
| 42 private: | 42 private: |
| 43 // NotificationObserver implementation. | 43 // NotificationObserver implementation. |
| 44 virtual void Observe(int type, | 44 virtual void Observe(int type, |
| 45 const content::NotificationSource& source, | 45 const content::NotificationSource& source, |
| 46 const content::NotificationDetails& details) OVERRIDE; | 46 const content::NotificationDetails& details) override; |
| 47 | 47 |
| 48 content::NotificationRegistrar registrar_; | 48 content::NotificationRegistrar registrar_; |
| 49 | 49 |
| 50 scoped_ptr<ConstrainedWindowMac> window_; | 50 scoped_ptr<ConstrainedWindowMac> window_; |
| 51 | 51 |
| 52 base::scoped_nsobject<CollectedCookiesWindowController> sheet_controller_; | 52 base::scoped_nsobject<CollectedCookiesWindowController> sheet_controller_; |
| 53 | 53 |
| 54 DISALLOW_COPY_AND_ASSIGN(CollectedCookiesMac); | 54 DISALLOW_COPY_AND_ASSIGN(CollectedCookiesMac); |
| 55 }; | 55 }; |
| 56 | 56 |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 - (CookiesTreeModel*)allowedTreeModel; | 142 - (CookiesTreeModel*)allowedTreeModel; |
| 143 - (CookiesTreeModel*)blockedTreeModel; | 143 - (CookiesTreeModel*)blockedTreeModel; |
| 144 | 144 |
| 145 - (void)loadTreeModelFromWebContents; | 145 - (void)loadTreeModelFromWebContents; |
| 146 | 146 |
| 147 // Given an array of selected NSTreeNode objects, normalizes the selection so | 147 // Given an array of selected NSTreeNode objects, normalizes the selection so |
| 148 // that it does not contain any children whose parents are also in the array. | 148 // that it does not contain any children whose parents are also in the array. |
| 149 + (NSArray*)normalizeNodeSelection:(NSArray*)selection; | 149 + (NSArray*)normalizeNodeSelection:(NSArray*)selection; |
| 150 | 150 |
| 151 @end | 151 @end |
| OLD | NEW |