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

Unified Diff: chrome/browser/gtk/options/content_filter_page_gtk.h

Issue 5078002: Disable content-settings GTK-UI for managed content-settings-types (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 10 years, 1 month 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/gtk/options/content_filter_page_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/options/content_filter_page_gtk.h
diff --git a/chrome/browser/gtk/options/content_filter_page_gtk.h b/chrome/browser/gtk/options/content_filter_page_gtk.h
index 614178e45f26fc4521dc4852ad0ac4c5ebbac903..e3c2d6adf65bc0158e74873783e74cf8ec750876 100644
--- a/chrome/browser/gtk/options/content_filter_page_gtk.h
+++ b/chrome/browser/gtk/options/content_filter_page_gtk.h
@@ -10,7 +10,10 @@
#include "app/gtk_signal.h"
#include "chrome/browser/options_page_base.h"
+#include "chrome/browser/host_content_settings_map.h"
+#include "chrome/common/content_settings.h"
#include "chrome/common/content_settings_types.h"
+#include "chrome/common/notification_registrar.h"
// A page in the content settings window. Used for everything but the Cookies
// page (which has a much more complex dialog). A |content_type| is passed into
@@ -24,7 +27,19 @@ class ContentFilterPageGtk : public OptionsPageBase {
return page_;
}
+ virtual void Observe(NotificationType type,
+ const NotificationSource& source,
+ const NotificationDetails& details);
+
private:
+ // This method is called during initialization to set the initial state of the
+ // buttons and called after a default content setting change (either value
+ // change or "is managed" state).
+ virtual void UpdateButtonsState();
+
+ virtual void NotifyContentSettingsChanged(
+ const HostContentSettingsMap::ContentSettingsDetails *details);
+
// Builds the content of the dialog.
GtkWidget* InitGroup();
@@ -41,6 +56,14 @@ class ContentFilterPageGtk : public OptionsPageBase {
GtkWidget* ask_radio_;
GtkWidget* block_radio_;
+ GtkWidget* exceptions_button_;
+
+ NotificationRegistrar registrar_;
+
+ // If state of the UI is not changed by a user-action we need to ignore
+ // "toggled" events.
+ bool ignore_toggle_;
+
DISALLOW_COPY_AND_ASSIGN(ContentFilterPageGtk);
};
« no previous file with comments | « no previous file | chrome/browser/gtk/options/content_filter_page_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698