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

Unified Diff: chrome/browser/ui/cocoa/page_info/page_info_bubble_controller.h

Issue 2737413004: Add a Certificate Viewer link to the Page Info dropdown (Closed)
Patch Set: Rebase, update tooltip Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/page_info/page_info_bubble_controller.h
diff --git a/chrome/browser/ui/cocoa/page_info/page_info_bubble_controller.h b/chrome/browser/ui/cocoa/page_info/page_info_bubble_controller.h
index 1621db3a84fe96aaba50b6d603617ddca02b4da4..1cc6bfd59ea4056d0bc611f10f9c5fb74db5c975 100644
--- a/chrome/browser/ui/cocoa/page_info/page_info_bubble_controller.h
+++ b/chrome/browser/ui/cocoa/page_info/page_info_bubble_controller.h
@@ -14,6 +14,7 @@
#import "chrome/browser/ui/cocoa/omnibox_decoration_bubble_controller.h"
#include "chrome/browser/ui/page_info/page_info_ui.h"
#include "content/public/browser/web_contents_observer.h"
+#import "ui/base/cocoa/flipped_view.h"
class PageInfoUIBridge;
@@ -29,8 +30,16 @@ namespace security_state {
struct SecurityInfo;
} // namespace security_state
+@interface InspectLinkView : FlippedView {
+ @private
+ NSButton* actionLink_;
+}
+
+- (id)initWithFrame:(NSRect)frame;
+@end
+
// This NSWindowController subclass manages the InfoBubbleWindow and view that
-// are displayed when the user clicks the favicon or security lock icon.
+// are displayed when the user clicks the omnibox security indicator icon.
@interface PageInfoBubbleController : OmniboxDecorationBubbleController {
@private
content::WebContents* webContents_;
@@ -62,7 +71,7 @@ struct SecurityInfo;
NSTextField* resetDecisionsField_;
// The link button for revoking certificate decisions.
- // This link only shows when there is an acrive certificate exception.
+ // This link only shows when there is an active certificate exception.
NSButton* resetDecisionsButton_;
// The server certificate from the identity info. This should always be
@@ -75,8 +84,11 @@ struct SecurityInfo;
// Container for the site settings section.
NSView* siteSettingsSectionView_;
+ // Container for certificate info in the site settings section.
+ InspectLinkView* certificateView_;
+
// Container for cookies info in the site settings section.
- NSView* cookiesView_;
+ InspectLinkView* cookiesView_;
// Container for permission info in the site settings section.
NSView* permissionsView_;
« no previous file with comments | « chrome/browser/flag_descriptions.cc ('k') | chrome/browser/ui/cocoa/page_info/page_info_bubble_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698