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/certificate_viewer_mac.h" | 5 #import "chrome/browser/ui/cocoa/certificate_viewer_mac.h" |
6 | 6 |
7 #include <Security/Security.h> | 7 #include <Security/Security.h> |
8 #include <SecurityInterface/SFCertificatePanel.h> | 8 #include <SecurityInterface/SFCertificatePanel.h> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 } | 190 } |
191 | 191 |
192 - (void)makeSheetKeyAndOrderFront { | 192 - (void)makeSheetKeyAndOrderFront { |
193 [[overlayWindow_ attachedSheet] makeKeyAndOrderFront:nil]; | 193 [[overlayWindow_ attachedSheet] makeKeyAndOrderFront:nil]; |
194 } | 194 } |
195 | 195 |
196 - (void)updateSheetPosition { | 196 - (void)updateSheetPosition { |
197 // NOOP | 197 // NOOP |
198 } | 198 } |
199 | 199 |
| 200 - (NSWindow*)sheetWindow { |
| 201 return panel_; |
| 202 } |
| 203 |
200 - (void)onConstrainedWindowClosed { | 204 - (void)onConstrainedWindowClosed { |
201 panel_.reset(); | 205 panel_.reset(); |
202 constrainedWindow_.reset(); | 206 constrainedWindow_.reset(); |
203 [self release]; | 207 [self release]; |
204 } | 208 } |
205 | 209 |
206 @end | 210 @end |
OLD | NEW |