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

Side by Side Diff: chrome/browser/ui/cocoa/certificate_viewer_mac.h

Issue 1779383002: MacViews: Remove constrained window dependencies for certificate viewer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move certificate_viewer_mac.* to chrome/browser/ui and certificate_viewer_mac_views.mm to chrome/br… Created 4 years, 4 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2013 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_H_
6
7 #define CHROME_BROWSER_UI_COCOA_CERTIFICATE_VIEWER_MAC_H_
8
9 #include <memory>
10
11 #include "base/mac/scoped_nsobject.h"
12 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.h"
13 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_sheet.h"
14
15 class SSLCertificateViewerCocoaBridge;
16 @class SFCertificatePanel;
17
18 namespace net {
19 class X509Certificate;
20 }
21
22 @interface SSLCertificateViewerCocoa : NSObject<ConstrainedWindowSheet> {
23 @private
24 // The corresponding list of certificates.
25 base::scoped_nsobject<NSArray> certificates_;
26 std::unique_ptr<SSLCertificateViewerCocoaBridge> observer_;
27 base::scoped_nsobject<SFCertificatePanel> panel_;
28 std::unique_ptr<ConstrainedWindowMac> constrainedWindow_;
29 base::scoped_nsobject<NSWindow> overlayWindow_;
30 BOOL closePending_;
31 // A copy of the overlay window's size used to restore on show.
32 NSSize oldOverlaySize_;
33 // A copy of the sheet's |autoresizesSubviews| flag to restore on show.
34 BOOL oldResizesSubviews_;
35 }
36
37 - (id)initWithCertificate:(net::X509Certificate*)certificate;
38
39 - (void)displayForWebContents:(content::WebContents*)webContents;
40
41 - (NSWindow*)overlayWindow;
42
43 @end
44
45 #endif // CHROME_BROWSER_UI_COCOA_CERTIFICATE_VIEWER_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698