| 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 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/mac/scoped_nsobject.h" | 9 #include "base/mac/scoped_nsobject.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 // to OriginInfo*. | 30 // to OriginInfo*. |
| 31 @interface WebsiteSettingsBubbleController : BaseBubbleController { | 31 @interface WebsiteSettingsBubbleController : BaseBubbleController { |
| 32 @private | 32 @private |
| 33 content::WebContents* webContents_; | 33 content::WebContents* webContents_; |
| 34 | 34 |
| 35 base::scoped_nsobject<NSView> contentView_; | 35 base::scoped_nsobject<NSView> contentView_; |
| 36 | 36 |
| 37 // The main content view for the Permissions tab. | 37 // The main content view for the Permissions tab. |
| 38 NSView* securitySectionView_; | 38 NSView* securitySectionView_; |
| 39 | 39 |
| 40 // Displays the web site identity. | 40 // Displays the short security summary for the page |
| 41 NSTextField* identityField_; | 41 // (private/not private/etc.). |
| 42 NSTextField* securitySummaryField_; |
| 42 | 43 |
| 43 // Displays the security summary for the page (private/not private/etc.). | 44 // Displays a longer explanation of the page's security state, and how the |
| 44 NSTextField* securitySummaryField_; | 45 // user should treat it. |
| 46 NSTextField* securityDetailsField_; |
| 45 | 47 |
| 46 // The link button for opening security details for the page. This is the | 48 // The link button for opening security details for the page. This is the |
| 47 // DevTools Security panel for most users, but may be the certificate viewer | 49 // DevTools Security panel for most users, but may be the certificate viewer |
| 48 // for enterprise users with DevTools disabled. | 50 // for enterprise users with DevTools disabled. |
| 49 NSButton* securityDetailsButton_; | 51 NSButton* securityDetailsButton_; |
| 50 | 52 |
| 51 // URL of the page for which the bubble is shown. | 53 // URL of the page for which the bubble is shown. |
| 52 GURL url_; | 54 GURL url_; |
| 53 | 55 |
| 56 // Displays a paragraph to accompany the reset decisions button, explaining |
| 57 // that the user has made a decision to trust an invalid security certificate |
| 58 // for the current site. |
| 59 // This field only shows when there is an acrive certificate exception. |
| 60 NSTextField* resetDecisionsField_; |
| 61 |
| 62 // The link button for revoking certificate decisions. |
| 63 // This link only shows when there is an acrive certificate exception. |
| 64 NSButton* resetDecisionsButton_; |
| 65 |
| 54 // Whether DevTools is disabled for the relevant profile. | 66 // Whether DevTools is disabled for the relevant profile. |
| 55 BOOL isDevToolsDisabled_; | 67 BOOL isDevToolsDisabled_; |
| 56 | 68 |
| 57 // The server certificate from the identity info. This should always be | 69 // The server certificate from the identity info. This should always be |
| 58 // non-null on a cryptographic connection, and null otherwise. | 70 // non-null on a cryptographic connection, and null otherwise. |
| 59 scoped_refptr<net::X509Certificate> certificate_; | 71 scoped_refptr<net::X509Certificate> certificate_; |
| 60 | 72 |
| 61 // The link button for revoking certificate decisions. | |
| 62 NSButton* resetDecisionsButton_; | |
| 63 | |
| 64 // Separator line. | 73 // Separator line. |
| 65 NSView* separatorAfterSecuritySection_; | 74 NSView* separatorAfterSecuritySection_; |
| 66 | 75 |
| 67 // Container for the site settings section. | 76 // Container for the site settings section. |
| 68 NSView* siteSettingsSectionView_; | 77 NSView* siteSettingsSectionView_; |
| 69 | 78 |
| 70 // Container for cookies info in the site settings section. | 79 // Container for cookies info in the site settings section. |
| 71 NSView* cookiesView_; | 80 NSView* cookiesView_; |
| 72 | 81 |
| 73 // Container for permission info in the site settings section. | 82 // Container for permission info in the site settings section. |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 | 150 |
| 142 private: | 151 private: |
| 143 // The WebContents the bubble UI is attached to. | 152 // The WebContents the bubble UI is attached to. |
| 144 content::WebContents* web_contents_; | 153 content::WebContents* web_contents_; |
| 145 | 154 |
| 146 // The Cocoa controller for the bubble UI. | 155 // The Cocoa controller for the bubble UI. |
| 147 WebsiteSettingsBubbleController* bubble_controller_; | 156 WebsiteSettingsBubbleController* bubble_controller_; |
| 148 | 157 |
| 149 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsUIBridge); | 158 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsUIBridge); |
| 150 }; | 159 }; |
| OLD | NEW |