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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_SYNC_SETUP_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_SYNC_SETUP_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_SYNC_SETUP_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_SYNC_SETUP_HANDLER_H_
7 7
8 #include "chrome/browser/prefs/pref_member.h"
8 #include "chrome/browser/ui/webui/sync_setup_handler.h" 9 #include "chrome/browser/ui/webui/sync_setup_handler.h"
9 10
10 class NewTabSyncSetupHandler : public SyncSetupHandler { 11 class NewTabSyncSetupHandler : public SyncSetupHandler {
James Hawkins 2011/07/18 02:37:36 Document the class.
sail 2011/07/20 01:30:46 Done.
12 public:
13 static bool ShouldShowSyncPromo();
James Hawkins 2011/07/18 02:37:36 Document this method.
sail 2011/07/20 01:30:46 Done.
14
15 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.
16 virtual void RegisterMessages();
17
18 // NotificationObserver interface
James Hawkins 2011/07/18 02:37:36 // NotificationObserver implementation.
sail 2011/07/20 01:30:46 Done.
19 virtual void Observe(int type,
20 const NotificationSource& source,
21 const NotificationDetails& details);
22
11 protected: 23 protected:
12 virtual void ShowSetupUI(); 24 virtual void ShowSetupUI();
25
26 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.
27 void HandleCollapseSyncPromo(const ListValue* args);
28 void HandleExpandSyncPromo(const ListValue* args);
29
30 private:
31 void UpdateLogin();
32
33 StringPrefMember username_pref_;
James Hawkins 2011/07/18 02:37:36 Document member var.
sail 2011/07/20 01:30:46 Done.
13 }; 34 };
14 35
15 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_SYNC_SETUP_HANDLER_H_ 36 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_SYNC_SETUP_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698