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_ |