| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_PAGE_INFO_PAGE_INFO_BUBBLE_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_PAGE_INFO_PAGE_INFO_BUBBLE_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_PAGE_INFO_PAGE_INFO_BUBBLE_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_PAGE_INFO_PAGE_INFO_BUBBLE_CONTROLLER_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 namespace net { | 24 namespace net { |
| 25 class X509Certificate; | 25 class X509Certificate; |
| 26 } | 26 } |
| 27 | 27 |
| 28 namespace security_state { | 28 namespace security_state { |
| 29 struct SecurityInfo; | 29 struct SecurityInfo; |
| 30 } // namespace security_state | 30 } // namespace security_state |
| 31 | 31 |
| 32 // This NSWindowController subclass manages the InfoBubbleWindow and view that | 32 // This NSWindowController subclass manages the InfoBubbleWindow and view that |
| 33 // are displayed when the user clicks the favicon or security lock icon. | 33 // are displayed when the user clicks the Page Info icon. |
| 34 @interface PageInfoBubbleController : OmniboxDecorationBubbleController { | 34 @interface PageInfoBubbleController : OmniboxDecorationBubbleController { |
| 35 @private | 35 @private |
| 36 content::WebContents* webContents_; | 36 content::WebContents* webContents_; |
| 37 | 37 |
| 38 base::scoped_nsobject<NSView> contentView_; | 38 base::scoped_nsobject<NSView> contentView_; |
| 39 | 39 |
| 40 // The main content view for the Permissions tab. | 40 // The main content view for the Permissions tab. |
| 41 NSView* securitySectionView_; | 41 NSView* securitySectionView_; |
| 42 | 42 |
| 43 // Displays the short security summary for the page | 43 // Displays the short security summary for the page |
| (...skipping 11 matching lines...) Expand all Loading... |
| 55 // URL of the page for which the bubble is shown. | 55 // URL of the page for which the bubble is shown. |
| 56 GURL url_; | 56 GURL url_; |
| 57 | 57 |
| 58 // Displays a paragraph to accompany the reset decisions button, explaining | 58 // Displays a paragraph to accompany the reset decisions button, explaining |
| 59 // that the user has made a decision to trust an invalid security certificate | 59 // that the user has made a decision to trust an invalid security certificate |
| 60 // for the current site. | 60 // for the current site. |
| 61 // This field only shows when there is an acrive certificate exception. | 61 // This field only shows when there is an acrive certificate exception. |
| 62 NSTextField* resetDecisionsField_; | 62 NSTextField* resetDecisionsField_; |
| 63 | 63 |
| 64 // The link button for revoking certificate decisions. | 64 // The link button for revoking certificate decisions. |
| 65 // This link only shows when there is an acrive certificate exception. | 65 // This link only shows when there is an active certificate exception. |
| 66 NSButton* resetDecisionsButton_; | 66 NSButton* resetDecisionsButton_; |
| 67 | 67 |
| 68 // The server certificate from the identity info. This should always be | 68 // The server certificate from the identity info. This should always be |
| 69 // non-null on a cryptographic connection, and null otherwise. | 69 // non-null on a cryptographic connection, and null otherwise. |
| 70 scoped_refptr<net::X509Certificate> certificate_; | 70 scoped_refptr<net::X509Certificate> certificate_; |
| 71 | 71 |
| 72 // Separator line. | 72 // Separator line. |
| 73 NSView* separatorAfterSecuritySection_; | 73 NSView* separatorAfterSecuritySection_; |
| 74 | 74 |
| 75 // Container for the site settings section. | 75 // Container for the site settings section. |
| 76 NSView* siteSettingsSectionView_; | 76 NSView* siteSettingsSectionView_; |
| 77 | 77 |
| 78 // Container for certificate info in the site settings section. |
| 79 NSView* certificateView_; |
| 80 |
| 78 // Container for cookies info in the site settings section. | 81 // Container for cookies info in the site settings section. |
| 79 NSView* cookiesView_; | 82 NSView* cookiesView_; |
| 80 | 83 |
| 81 // Container for permission info in the site settings section. | 84 // Container for permission info in the site settings section. |
| 82 NSView* permissionsView_; | 85 NSView* permissionsView_; |
| 83 | 86 |
| 84 // Whether the permissionView_ shows anything. | 87 // Whether the permissionView_ shows anything. |
| 85 BOOL permissionsPresent_; | 88 BOOL permissionsPresent_; |
| 86 | 89 |
| 87 // The link button for showing site settings. | 90 // The link button for showing site settings. |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 // The WebContents the bubble UI is attached to. | 148 // The WebContents the bubble UI is attached to. |
| 146 content::WebContents* web_contents_; | 149 content::WebContents* web_contents_; |
| 147 | 150 |
| 148 // The Cocoa controller for the bubble UI. | 151 // The Cocoa controller for the bubble UI. |
| 149 PageInfoBubbleController* bubble_controller_; | 152 PageInfoBubbleController* bubble_controller_; |
| 150 | 153 |
| 151 DISALLOW_COPY_AND_ASSIGN(PageInfoUIBridge); | 154 DISALLOW_COPY_AND_ASSIGN(PageInfoUIBridge); |
| 152 }; | 155 }; |
| 153 | 156 |
| 154 #endif // CHROME_BROWSER_UI_COCOA_PAGE_INFO_PAGE_INFO_BUBBLE_CONTROLLER_H_ | 157 #endif // CHROME_BROWSER_UI_COCOA_PAGE_INFO_PAGE_INFO_BUBBLE_CONTROLLER_H_ |
| OLD | NEW |