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

Unified Diff: chrome/browser/ui/gtk/website_settings/website_settings_popup_gtk.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: " 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/gtk/website_settings/website_settings_popup_gtk.h
diff --git a/chrome/browser/ui/gtk/website_settings/website_settings_popup_gtk.h b/chrome/browser/ui/gtk/website_settings/website_settings_popup_gtk.h
index 0a4fb8990edc4ea20dc418c607a14d7bf2d1587c..b082730f4a05000b058fa47ac88d69afbde55017 100644
--- a/chrome/browser/ui/gtk/website_settings/website_settings_popup_gtk.h
+++ b/chrome/browser/ui/gtk/website_settings/website_settings_popup_gtk.h
@@ -57,6 +57,7 @@ class WebsiteSettingsPopupGtk : public WebsiteSettingsUI,
const PermissionInfoList& permission_info_list) OVERRIDE;
virtual void SetIdentityInfo(const IdentityInfo& identity_info) OVERRIDE;
virtual void SetFirstVisit(const string16& first_visit) OVERRIDE;
+ virtual void SetSelectedTab(WebsiteSettingsUI::TabId tab_id) OVERRIDE;
// PermissionSelectorObserver implementations.
virtual void OnPermissionChanged(PermissionSelector* selector) OVERRIDE;
@@ -114,12 +115,20 @@ class WebsiteSettingsPopupGtk : public WebsiteSettingsUI,
// tab.
GtkWidget* identity_contents_;
+ // An array that is indexed by |WebsiteSettingsUI::TabId| and stores the tab
+ // indecies used by |notebook_|. |tab_id_index_map_| is used to map |TabId|s
+ // to indecies.
+ int tab_id_index_map_[NUM_TAB_IDS];
+
// Container for the connection section of the connection tab.
GtkWidget* connection_contents_;
// Container for the information about the first visit date of the website.
GtkWidget* first_visit_contents_;
+ // The widget that contains the tabs display on the popup.
+ GtkWidget* notebook_;
+
// The UI translates user actions to specific events and forwards them to the
// |presenter_|. The |presenter_| handles these events and updates the UI.
scoped_ptr<WebsiteSettings> presenter_;

Powered by Google App Engine
This is Rietveld 408576698