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

Unified Diff: chrome/browser/dom_ui/new_tab_page_sync_handler.h

Issue 270081: Facelifts to sync UI (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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_resources.grd ('k') | chrome/browser/dom_ui/new_tab_page_sync_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/dom_ui/new_tab_page_sync_handler.h
===================================================================
--- chrome/browser/dom_ui/new_tab_page_sync_handler.h (revision 29168)
+++ chrome/browser/dom_ui/new_tab_page_sync_handler.h (working copy)
@@ -36,8 +36,13 @@
virtual void OnStateChanged();
private:
+ enum MessageType {
+ HIDE,
+ PROMOTION,
+ SYNC_ERROR,
+ };
// Helper to invoke the |syncMessageChanged| JS function on the new tab page.
- void SendSyncMessageToPage(SyncStatusUIHelper::MessageType type,
+ void SendSyncMessageToPage(MessageType type,
std::string msg, std::string linktext);
// Helper to query the sync service and figure out what to send to
@@ -48,6 +53,10 @@
// Helper to send a message to the NNTP which hides the sync section.
void HideSyncStatusSection();
+ // Helper to convert from a sync status message type to an NTP specific one.
+ static MessageType FromSyncStatusMessageType(
+ SyncStatusUIHelper::MessageType type);
+
// Cached pointer to ProfileSyncService.
ProfileSyncService* sync_service_;
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | chrome/browser/dom_ui/new_tab_page_sync_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698