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

Unified Diff: chrome/browser/ui/webui/ntp/new_tab_sync_setup_handler.h

Issue 7399015: Sync Promo: Add a way to collapse the sync promo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove extra changes Created 9 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
Index: chrome/browser/ui/webui/ntp/new_tab_sync_setup_handler.h
diff --git a/chrome/browser/ui/webui/ntp/new_tab_sync_setup_handler.h b/chrome/browser/ui/webui/ntp/new_tab_sync_setup_handler.h
index 00bd1b67457135d09d7266a5f6e5fe849e19d639..192b0cae06e52d69d0a0c8059d7fb9b8fd90c747 100644
--- a/chrome/browser/ui/webui/ntp/new_tab_sync_setup_handler.h
+++ b/chrome/browser/ui/webui/ntp/new_tab_sync_setup_handler.h
@@ -5,11 +5,32 @@
#ifndef CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_SYNC_SETUP_HANDLER_H_
#define CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_SYNC_SETUP_HANDLER_H_
+#include "chrome/browser/prefs/pref_member.h"
#include "chrome/browser/ui/webui/sync_setup_handler.h"
class NewTabSyncSetupHandler : public SyncSetupHandler {
James Hawkins 2011/07/18 02:37:36 Document the class.
sail 2011/07/20 01:30:46 Done.
+ public:
+ static bool ShouldShowSyncPromo();
James Hawkins 2011/07/18 02:37:36 Document this method.
sail 2011/07/20 01:30:46 Done.
+
+ virtual WebUIMessageHandler* Attach(WebUI* web_ui);
James Hawkins 2011/07/18 02:37:36 // XYZ implementation. For whatever the correct X
sail 2011/07/20 01:30:46 Done.
+ virtual void RegisterMessages();
+
+ // NotificationObserver interface
James Hawkins 2011/07/18 02:37:36 // NotificationObserver implementation.
sail 2011/07/20 01:30:46 Done.
+ virtual void Observe(int type,
+ const NotificationSource& source,
+ const NotificationDetails& details);
+
protected:
virtual void ShowSetupUI();
+
+ void HandleInitializeSyncPromo(const ListValue* args);
James Hawkins 2011/07/18 02:37:36 Document all of these methods.
sail 2011/07/20 01:30:46 Done.
+ void HandleCollapseSyncPromo(const ListValue* args);
+ void HandleExpandSyncPromo(const ListValue* args);
+
+ private:
+ void UpdateLogin();
+
+ StringPrefMember username_pref_;
James Hawkins 2011/07/18 02:37:36 Document member var.
sail 2011/07/20 01:30:46 Done.
};
#endif // CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_SYNC_SETUP_HANDLER_H_

Powered by Google App Engine
This is Rietveld 408576698