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

Side by Side Diff: chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.h

Issue 2504453003: Page Info (native Mac): Change "Details" link (sec. panel) to "Learn more" (help center). (Closed)
Patch Set: Page Info (native Mac): Change "Details" link (sec. panel) to "Learn more" (help center). Created 4 years 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
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 30 matching lines...) Expand all
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
44 // (private/not private/etc.). 44 // (private/not private/etc.).
45 NSTextField* securitySummaryField_; 45 NSTextField* securitySummaryField_;
46 46
47 // Displays a longer explanation of the page's security state, and how the 47 // Displays a longer explanation of the page's security state, and how the
48 // user should treat it. 48 // user should treat it.
49 NSTextField* securityDetailsField_; 49 NSTextField* securityDetailsField_;
50 50
51 // The link button for opening security details for the page. This is the 51 // The link button for opening a Chrome Help Center page explaining connection
52 // DevTools Security panel for most users, but may be the certificate viewer 52 // security.
53 // for enterprise users with DevTools disabled. 53 NSButton* connectionHelpButton_;
54 NSButton* securityDetailsButton_;
55 54
56 // URL of the page for which the bubble is shown. 55 // URL of the page for which the bubble is shown.
57 GURL url_; 56 GURL url_;
58 57
59 // Displays a paragraph to accompany the reset decisions button, explaining 58 // Displays a paragraph to accompany the reset decisions button, explaining
60 // 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
61 // for the current site. 60 // for the current site.
62 // This field only shows when there is an acrive certificate exception. 61 // This field only shows when there is an acrive certificate exception.
63 NSTextField* resetDecisionsField_; 62 NSTextField* resetDecisionsField_;
64 63
65 // The link button for revoking certificate decisions. 64 // The link button for revoking certificate decisions.
66 // This link only shows when there is an acrive certificate exception. 65 // This link only shows when there is an acrive certificate exception.
67 NSButton* resetDecisionsButton_; 66 NSButton* resetDecisionsButton_;
68 67
69 // Whether DevTools is disabled for the relevant profile.
70 BOOL isDevToolsDisabled_;
71
72 // The server certificate from the identity info. This should always be 68 // The server certificate from the identity info. This should always be
73 // non-null on a cryptographic connection, and null otherwise. 69 // non-null on a cryptographic connection, and null otherwise.
74 scoped_refptr<net::X509Certificate> certificate_; 70 scoped_refptr<net::X509Certificate> certificate_;
75 71
76 // Separator line. 72 // Separator line.
77 NSView* separatorAfterSecuritySection_; 73 NSView* separatorAfterSecuritySection_;
78 74
79 // Container for the site settings section. 75 // Container for the site settings section.
80 NSView* siteSettingsSectionView_; 76 NSView* siteSettingsSectionView_;
81 77
(...skipping 17 matching lines...) Expand all
99 // methods on to this class. 95 // methods on to this class.
100 std::unique_ptr<WebsiteSettingsUIBridge> bridge_; 96 std::unique_ptr<WebsiteSettingsUIBridge> bridge_;
101 } 97 }
102 98
103 // Designated initializer. The controller will release itself when the bubble 99 // Designated initializer. The controller will release itself when the bubble
104 // is closed. |parentWindow| cannot be nil. |webContents| may be nil for 100 // is closed. |parentWindow| cannot be nil. |webContents| may be nil for
105 // testing purposes. 101 // testing purposes.
106 - (id)initWithParentWindow:(NSWindow*)parentWindow 102 - (id)initWithParentWindow:(NSWindow*)parentWindow
107 websiteSettingsUIBridge:(WebsiteSettingsUIBridge*)bridge 103 websiteSettingsUIBridge:(WebsiteSettingsUIBridge*)bridge
108 webContents:(content::WebContents*)webContents 104 webContents:(content::WebContents*)webContents
109 url:(const GURL&)url 105 url:(const GURL&)url;
110 isDevToolsDisabled:(BOOL)isDevToolsDisabled;
111 106
112 // Return the default width of the window. It may be wider to fit the content. 107 // Return the default width of the window. It may be wider to fit the content.
113 // This may be overriden by a subclass for testing purposes. 108 // This may be overriden by a subclass for testing purposes.
114 - (CGFloat)defaultWindowWidth; 109 - (CGFloat)defaultWindowWidth;
115 110
116 @end 111 @end
117 112
118 // Provides a bridge between the WebSettingsUI C++ interface and the Cocoa 113 // Provides a bridge between the WebSettingsUI C++ interface and the Cocoa
119 // implementation in WebsiteSettingsBubbleController. 114 // implementation in WebsiteSettingsBubbleController.
120 class WebsiteSettingsUIBridge : public content::WebContentsObserver, 115 class WebsiteSettingsUIBridge : public content::WebContentsObserver,
(...skipping 29 matching lines...) Expand all
150 145
151 private: 146 private:
152 // The WebContents the bubble UI is attached to. 147 // The WebContents the bubble UI is attached to.
153 content::WebContents* web_contents_; 148 content::WebContents* web_contents_;
154 149
155 // The Cocoa controller for the bubble UI. 150 // The Cocoa controller for the bubble UI.
156 WebsiteSettingsBubbleController* bubble_controller_; 151 WebsiteSettingsBubbleController* bubble_controller_;
157 152
158 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsUIBridge); 153 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsUIBridge);
159 }; 154 };
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698