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

Unified Diff: chrome/browser/cookie_modal_dialog.h

Issue 2964003: Make kCookiePromptExpanded a profile pref rather than a local state pref so it can be synced. (Closed)
Patch Set: Windows changes. Created 10 years, 5 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 | « chrome/browser/browser_prefs.cc ('k') | chrome/browser/cookie_modal_dialog.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cookie_modal_dialog.h
diff --git a/chrome/browser/cookie_modal_dialog.h b/chrome/browser/cookie_modal_dialog.h
index c91a420a429abb40a91fb487a3aba55a65d93f88..5308186646ed10c9ee512c9fcfb728629c9de56d 100644
--- a/chrome/browser/cookie_modal_dialog.h
+++ b/chrome/browser/cookie_modal_dialog.h
@@ -13,6 +13,10 @@
#include "chrome/browser/cookie_prompt_modal_dialog_delegate.h"
#include "googleurl/src/gurl.h"
+#if defined(OS_LINUX)
+#include "app/gtk_signal.h"
+#endif
+
#if defined(OS_MACOSX)
#if __OBJC__
@class NSWindow;
@@ -24,6 +28,11 @@ class NSWindow;
class HostContentSettingsMap;
class PrefService;
+#if defined(OS_LINUX)
+typedef struct _GtkWidget GtkWidget;
+typedef struct _GParamSpec GParamSpec;
+#endif
+
// A controller+model class for cookie and local storage warning prompt.
// |NativeDialog| is a platform specific view.
class CookiePromptModalDialog : public AppModalDialog {
@@ -61,7 +70,7 @@ class CookiePromptModalDialog : public AppModalDialog {
CookiePromptModalDialogDelegate* delegate);
virtual ~CookiePromptModalDialog();
- static void RegisterPrefs(PrefService* prefs);
+ static void RegisterUserPrefs(PrefService* prefs);
// AppModalDialog overrides.
#if defined(OS_LINUX) || defined(OS_MACOSX)
@@ -96,6 +105,10 @@ class CookiePromptModalDialog : public AppModalDialog {
virtual NativeDialog CreateNativeDialog();
#if defined(OS_LINUX)
virtual void HandleDialogResponse(GtkDialog* dialog, gint response_id);
+ CHROMEGTK_CALLBACK_1(CookiePromptModalDialog,
+ void,
+ OnExpanderActivate,
+ GParamSpec*);
#endif
private:
« no previous file with comments | « chrome/browser/browser_prefs.cc ('k') | chrome/browser/cookie_modal_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698