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

Side by Side Diff: chrome/browser/ui/webui/ntp/new_tab_sync_setup_handler.h

Issue 7610008: Sync Promo: Show profile avatar next to user name (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix build issues Created 9 years, 4 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/prefs/pref_member.h"
9 #include "chrome/browser/ui/webui/sync_setup_handler.h" 9 #include "chrome/browser/ui/webui/sync_setup_handler.h"
10 10
(...skipping 21 matching lines...) Expand all
32 32
33 // Javascript callback handler to initialize the sync promo UI. 33 // Javascript callback handler to initialize the sync promo UI.
34 void HandleInitializeSyncPromo(const ListValue* args); 34 void HandleInitializeSyncPromo(const ListValue* args);
35 35
36 // Javascript callback handler to collapse the sync promo. 36 // Javascript callback handler to collapse the sync promo.
37 void HandleCollapseSyncPromo(const ListValue* args); 37 void HandleCollapseSyncPromo(const ListValue* args);
38 38
39 // Javascript callback handler to expand the sync promo. 39 // Javascript callback handler to expand the sync promo.
40 void HandleExpandSyncPromo(const ListValue* args); 40 void HandleExpandSyncPromo(const ListValue* args);
41 41
42 // Javascript callback handler to show the profiles menu.
43 void HandleShowProfilesMenu(const ListValue* args);
44
42 private: 45 private:
43 // Sends the sync login name to the page. 46 // Sends the sync login name to the page.
44 void UpdateLogin(); 47 void UpdateLogin();
45 48
46 // Saves the expanded state to preferences. 49 // Saves the expanded state to preferences.
47 void SaveExpandedPreference(bool is_expanded); 50 void SaveExpandedPreference(bool is_expanded);
48 51
49 // Preference for the sync login name. 52 // Preference for the sync login name.
50 StringPrefMember username_pref_; 53 StringPrefMember username_pref_;
54
55 // This is used to monitor the profile state.
56 NotificationRegistrar registrar_;
51 }; 57 };
52 58
53 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_SYNC_SETUP_HANDLER_H_ 59 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_SYNC_SETUP_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/resources/new_tab_sync_promo.js ('k') | chrome/browser/ui/webui/ntp/new_tab_sync_setup_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698