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/ssl_client_certificate_selector_cocoa.h" | 5 #import "chrome/browser/ui/cocoa/ssl_client_certificate_selector_cocoa.h" |
6 | 6 |
7 #import <SecurityInterface/SFChooseIdentityPanel.h> | 7 #import <SecurityInterface/SFChooseIdentityPanel.h> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/mac/foundation_util.h" | 10 #include "base/mac/foundation_util.h" |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 } | 220 } |
221 | 221 |
222 - (void)makeSheetKeyAndOrderFront { | 222 - (void)makeSheetKeyAndOrderFront { |
223 [[overlayWindow_ attachedSheet] makeKeyAndOrderFront:nil]; | 223 [[overlayWindow_ attachedSheet] makeKeyAndOrderFront:nil]; |
224 } | 224 } |
225 | 225 |
226 - (void)updateSheetPosition { | 226 - (void)updateSheetPosition { |
227 // NOOP | 227 // NOOP |
228 } | 228 } |
229 | 229 |
| 230 - (NSWindow*)sheetWindow { |
| 231 return panel_; |
| 232 } |
| 233 |
230 - (void)onConstrainedWindowClosed { | 234 - (void)onConstrainedWindowClosed { |
231 observer_->StopObserving(); | 235 observer_->StopObserving(); |
232 panel_.reset(); | 236 panel_.reset(); |
233 constrainedWindow_.reset(); | 237 constrainedWindow_.reset(); |
234 [self release]; | 238 [self release]; |
235 } | 239 } |
236 | 240 |
237 @end | 241 @end |
OLD | NEW |