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

Unified Diff: chrome/browser/ui/website_settings/website_settings_ui.h

Issue 10829452: Auto select the connection tab of the Website Settings UI in case of an https error or mixed content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add views specific parts. Created 8 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
Index: chrome/browser/ui/website_settings/website_settings_ui.h
diff --git a/chrome/browser/ui/website_settings/website_settings_ui.h b/chrome/browser/ui/website_settings/website_settings_ui.h
index c6a9d220a423aa264a555f2c60a624a26954a6f2..5d3ff2c2a887c3717daeea74befac12eab1a94a3 100644
--- a/chrome/browser/ui/website_settings/website_settings_ui.h
+++ b/chrome/browser/ui/website_settings/website_settings_ui.h
@@ -34,6 +34,14 @@ class Image;
// etc.).
class WebsiteSettingsUI {
public:
+ // The Website Settings UI contains several tabs. Each tab is assiciated with
+ // a unique tab id. The enum |TabId| contains all the ids for the tabs.
+ enum TabId {
+ TAB_ID_PERMISSIONS,
msw 2012/08/23 01:01:35 nit: explicitly specify TAB_ID_PERMISSIONS = 0 (es
markusheintz_ 2012/08/23 19:46:21 Done.
+ TAB_ID_CONNECTION,
+ NUM_TAB_IDS
msw 2012/08/23 01:01:35 nit: always use trailing commas in enum decls.
markusheintz_ 2012/08/23 19:46:21 Done
+ };
+
// |CookieInfo| contains information about the cookies from a specific source.
// A source can for example be a specific origin or an entire domain.
struct CookieInfo {
@@ -133,6 +141,9 @@ class WebsiteSettingsUI {
// Sets the first visited data. |first_visit| can be an empty string.
virtual void SetFirstVisit(const string16& first_visit) = 0;
+
+ // Selects the tab with the given |tab_id|.
+ virtual void SetSelectedTab(TabId tab_id) = 0;
};
typedef WebsiteSettingsUI::CookieInfoList CookieInfoList;

Powered by Google App Engine
This is Rietveld 408576698