Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8312)

Unified Diff: chrome/browser/ui/cocoa/certificate_viewer_mac_views.h

Issue 1779383002: MacViews: Remove constrained window dependencies for certificate viewer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restore overlayWindow method for SSLCertificateViewerCocoa, fix test, other nits. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/certificate_viewer_mac_views.h
diff --git a/chrome/browser/ui/cocoa/certificate_viewer_mac_views.h b/chrome/browser/ui/cocoa/certificate_viewer_mac_views.h
new file mode 100644
index 0000000000000000000000000000000000000000..20466dcbc0220fee15963706453a8d48a5510168
--- /dev/null
+++ b/chrome/browser/ui/cocoa/certificate_viewer_mac_views.h
@@ -0,0 +1,31 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
tapted 2016/05/19 01:53:25 I think we don't need this header -- can it all be
Patti Lor 2016/05/25 05:43:00 Done.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_COCOA_CERTIFICATE_VIEWER_MAC_VIEWS_H_
+#define CHROME_BROWSER_UI_COCOA_CERTIFICATE_VIEWER_MAC_VIEWS_H_
+
+#include <memory>
+
+#import "chrome/browser/ui/cocoa/certificate_viewer_mac.h"
+
+namespace views {
+class Widget;
+class WidgetDelegateView;
+}
+
+// Certificate viewer class for MacViews which handles displaying and closing
+// the Cocoa certificate viewer.
+@interface SSLCertificateViewerViewsMac : SSLCertificateViewerMac {
+ @private
+ std::unique_ptr<views::Widget> overlayWindow_;
+}
+
+// Closes the certificate viewer properly.
+- (void)sheetDidEnd:(NSWindow*)parent
+ returnCode:(NSInteger)returnCode
+ context:(void*)context;
+
+@end
+
+#endif // CHROME_BROWSER_UI_COCOA_CERTIFICATE_VIEWER_MAC_VIEWS_H_

Powered by Google App Engine
This is Rietveld 408576698