OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_COCOA_CERTIFICATE_VIEWER_MAC_VIEWS_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_CERTIFICATE_VIEWER_MAC_VIEWS_H_ |
| 7 |
| 8 #include <memory> |
| 9 |
| 10 #import "chrome/browser/ui/cocoa/certificate_viewer_mac.h" |
| 11 |
| 12 namespace views { |
| 13 class Widget; |
| 14 class WidgetDelegateView; |
| 15 } |
| 16 |
| 17 // Certificate viewer class for MacViews which handles displaying and closing |
| 18 // the Cocoa certificate viewer. |
| 19 @interface SSLCertificateViewerViewsMac : SSLCertificateViewerMac { |
| 20 @private |
| 21 std::unique_ptr<views::Widget> overlayWindow_; |
| 22 } |
| 23 |
| 24 // Closes the certificate viewer properly. |
| 25 - (void)sheetDidEnd:(NSWindow*)parent |
| 26 returnCode:(NSInteger)returnCode |
| 27 context:(void*)context; |
| 28 |
| 29 @end |
| 30 |
| 31 #endif // CHROME_BROWSER_UI_COCOA_CERTIFICATE_VIEWER_MAC_VIEWS_H_ |
OLD | NEW |