| 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 "chrome/browser/ui/cocoa/content_settings/collected_cookies_mac.h" | 5 #import "chrome/browser/ui/cocoa/content_settings/collected_cookies_mac.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/mac/bundle_locations.h" | 9 #include "base/mac/bundle_locations.h" |
| 10 #import "base/mac/mac_util.h" | 10 #import "base/mac/mac_util.h" |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 this, web_contents, sheet)); | 89 this, web_contents, sheet)); |
| 90 } | 90 } |
| 91 | 91 |
| 92 CollectedCookiesMac::~CollectedCookiesMac() { | 92 CollectedCookiesMac::~CollectedCookiesMac() { |
| 93 } | 93 } |
| 94 | 94 |
| 95 void CollectedCookiesMac::Observe(int type, | 95 void CollectedCookiesMac::Observe(int type, |
| 96 const content::NotificationSource& source, | 96 const content::NotificationSource& source, |
| 97 const content::NotificationDetails& details) { | 97 const content::NotificationDetails& details) { |
| 98 DCHECK(type == chrome::NOTIFICATION_COLLECTED_COOKIES_SHOWN); | 98 DCHECK(type == chrome::NOTIFICATION_COLLECTED_COOKIES_SHOWN); |
| 99 window_->CloseConstrainedWindow(); | 99 window_->CloseWebContentsModalDialog(); |
| 100 } | 100 } |
| 101 | 101 |
| 102 void CollectedCookiesMac::PerformClose() { | 102 void CollectedCookiesMac::PerformClose() { |
| 103 window_->CloseConstrainedWindow(); | 103 window_->CloseWebContentsModalDialog(); |
| 104 } | 104 } |
| 105 | 105 |
| 106 void CollectedCookiesMac::OnConstrainedWindowClosed( | 106 void CollectedCookiesMac::OnConstrainedWindowClosed( |
| 107 ConstrainedWindowMac* window) { | 107 ConstrainedWindowMac* window) { |
| 108 MessageLoop::current()->DeleteSoon(FROM_HERE, this); | 108 MessageLoop::current()->DeleteSoon(FROM_HERE, this); |
| 109 } | 109 } |
| 110 | 110 |
| 111 #pragma mark Window Controller | 111 #pragma mark Window Controller |
| 112 | 112 |
| 113 @interface CollectedCookiesWindowController(Private) | 113 @interface CollectedCookiesWindowController(Private) |
| (...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 514 treeController = blockedTreeController_; | 514 treeController = blockedTreeController_; |
| 515 break; | 515 break; |
| 516 default: | 516 default: |
| 517 NOTREACHED(); | 517 NOTREACHED(); |
| 518 return; | 518 return; |
| 519 } | 519 } |
| 520 [detailsViewController_ configureBindingsForTreeController:treeController]; | 520 [detailsViewController_ configureBindingsForTreeController:treeController]; |
| 521 } | 521 } |
| 522 | 522 |
| 523 @end | 523 @end |
| OLD | NEW |