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

Unified Diff: chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.h

Issue 2232453002: Show a custom message in the page info bubble for view-source URLs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: The Created 4 years, 4 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
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.h
diff --git a/chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.h b/chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.h
index cea66d366d3eab472d9cbb03034f46c7496b5985..544e260573378a01dfa3cc0c34dd5b8148fc9ecb 100644
--- a/chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.h
+++ b/chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.h
@@ -44,6 +44,9 @@ class WebContents;
// for enterprise users with DevTools disabled.
NSButton* securityDetailsButton_;
+ // URL of the page for which the bubble is shown.
+ GURL url_;
+
// Whether DevTools is disabled for the relevant profile.
BOOL isDevToolsDisabled_;
@@ -81,19 +84,13 @@ class WebContents;
std::unique_ptr<WebsiteSettingsUIBridge> bridge_;
}
-enum BubbleType {
- WEB_PAGE, // Bubble for web URLs
- INTERNAL_PAGE, // For chrome: URLs
- EXTENSION_PAGE, // For chrome-extension: URLs
-};
-
// Designated initializer. The controller will release itself when the bubble
// is closed. |parentWindow| cannot be nil. |webContents| may be nil for
// testing purposes.
- (id)initWithParentWindow:(NSWindow*)parentWindow
websiteSettingsUIBridge:(WebsiteSettingsUIBridge*)bridge
webContents:(content::WebContents*)webContents
- bubbleType:(BubbleType)bubbleType
+ url:(const GURL&)url
isDevToolsDisabled:(BOOL)isDevToolsDisabled;
// Return the default width of the window. It may be wider to fit the content.
« 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