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

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

Issue 2039823002: MacViews: Refactor certificate viewer tests to work for MacViews browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@certview
Patch Set: Rebase onto master & add ignoreMouseEvents fix for hiding/reshowing the certificate viewer. Created 4 years, 6 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
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 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 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 #ifndef CHROME_BROWSER_UI_COCOA_CERTIFICATE_VIEWER_MAC_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_CERTIFICATE_VIEWER_MAC_H_
6 6
7 #define CHROME_BROWSER_UI_COCOA_CERTIFICATE_VIEWER_MAC_H_ 7 #define CHROME_BROWSER_UI_COCOA_CERTIFICATE_VIEWER_MAC_H_
8 8
9 #include <memory> 9 #include <memory>
10 10
(...skipping 10 matching lines...) Expand all
21 21
22 @interface SSLCertificateViewerCocoa : NSObject<ConstrainedWindowSheet> { 22 @interface SSLCertificateViewerCocoa : NSObject<ConstrainedWindowSheet> {
23 @private 23 @private
24 // The corresponding list of certificates. 24 // The corresponding list of certificates.
25 base::scoped_nsobject<NSArray> certificates_; 25 base::scoped_nsobject<NSArray> certificates_;
26 std::unique_ptr<SSLCertificateViewerCocoaBridge> observer_; 26 std::unique_ptr<SSLCertificateViewerCocoaBridge> observer_;
27 base::scoped_nsobject<SFCertificatePanel> panel_; 27 base::scoped_nsobject<SFCertificatePanel> panel_;
28 std::unique_ptr<ConstrainedWindowMac> constrainedWindow_; 28 std::unique_ptr<ConstrainedWindowMac> constrainedWindow_;
29 base::scoped_nsobject<NSWindow> overlayWindow_; 29 base::scoped_nsobject<NSWindow> overlayWindow_;
30 BOOL closePending_; 30 BOOL closePending_;
31 // A copy of the sheet's frame used to restore on show.
32 NSRect oldSheetFrame_;
33 // A copy of the overlay window's size used to restore on show. 31 // A copy of the overlay window's size used to restore on show.
34 NSSize oldOverlaySize_; 32 NSSize oldOverlaySize_;
35 // A copy of the sheet's |autoresizesSubviews| flag to restore on show. 33 // A copy of the sheet's |autoresizesSubviews| flag to restore on show.
36 BOOL oldResizesSubviews_; 34 BOOL oldResizesSubviews_;
37 } 35 }
38 36
39 - (id)initWithCertificate:(net::X509Certificate*)certificate; 37 - (id)initWithCertificate:(net::X509Certificate*)certificate;
40 38
41 - (void)displayForWebContents:(content::WebContents*)webContents; 39 - (void)displayForWebContents:(content::WebContents*)webContents;
42 40
43 - (NSWindow*)overlayWindow; 41 - (NSWindow*)overlayWindow;
tapted 2016/06/17 06:11:33 can this be removed? (from the .mm too)
Patti Lor 2016/06/20 03:42:28 Done.
44 42
45 @end 43 @end
46 44
47 #endif // CHROME_BROWSER_UI_COCOA_CERTIFICATE_VIEWER_MAC_H_ 45 #endif // CHROME_BROWSER_UI_COCOA_CERTIFICATE_VIEWER_MAC_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/certificate_viewer_mac.mm » ('j') | chrome/browser/ui/cocoa/certificate_viewer_mac.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698