| OLD | NEW |
| 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_SYNC_SYNC_UI_UTIL_H_ | 5 #ifndef CHROME_BROWSER_SYNC_SYNC_UI_UTIL_H_ |
| 6 #define CHROME_BROWSER_SYNC_SYNC_UI_UTIL_H_ | 6 #define CHROME_BROWSER_SYNC_SYNC_UI_UTIL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 string16* status_label, | 42 string16* status_label, |
| 43 string16* link_label); | 43 string16* link_label); |
| 44 | 44 |
| 45 // Same as above but for use specifically on the New Tab Page. | 45 // Same as above but for use specifically on the New Tab Page. |
| 46 // |status_label| may contain an HTML-formatted link. | 46 // |status_label| may contain an HTML-formatted link. |
| 47 MessageType GetStatusLabelsForNewTabPage(ProfileSyncService* service, | 47 MessageType GetStatusLabelsForNewTabPage(ProfileSyncService* service, |
| 48 string16* status_label, | 48 string16* status_label, |
| 49 string16* link_label); | 49 string16* link_label); |
| 50 | 50 |
| 51 // Gets various labels for the sync global error based on the sync error state. | 51 // Gets various labels for the sync global error based on the sync error state. |
| 52 MessageType GetStatusLabelsForSyncGlobalError(ProfileSyncService* service, | 52 // |menu_item_label|, |bubble_message|, and |bubble_accept_label| must not be |
| 53 string16* menu_item_label, | 53 // NULL. |
| 54 string16* bubble_message, | 54 void GetStatusLabelsForSyncGlobalError(ProfileSyncService* service, |
| 55 string16* bubble_accept_label); | 55 string16* menu_item_label, |
| 56 string16* bubble_message, |
| 57 string16* bubble_accept_label); |
| 56 | 58 |
| 57 MessageType GetStatus(ProfileSyncService* service); | 59 MessageType GetStatus(ProfileSyncService* service); |
| 58 | 60 |
| 59 // Determines whether or not the sync error button should be visible. | 61 // Determines whether or not the sync error button should be visible. |
| 60 bool ShouldShowSyncErrorButton(ProfileSyncService* service); | 62 bool ShouldShowSyncErrorButton(ProfileSyncService* service); |
| 61 | 63 |
| 62 // Returns a string with the synchronization status. | 64 // Returns a string with the synchronization status. |
| 63 string16 GetSyncMenuLabel(ProfileSyncService* service); | 65 string16 GetSyncMenuLabel(ProfileSyncService* service); |
| 64 | 66 |
| 65 // Open the appropriate sync dialog for the given profile (which can be | 67 // Open the appropriate sync dialog for the given profile (which can be |
| (...skipping 13 matching lines...) Expand all Loading... |
| 79 | 81 |
| 80 void AddIntSyncDetail(base::ListValue* details, | 82 void AddIntSyncDetail(base::ListValue* details, |
| 81 const std::string& stat_name, | 83 const std::string& stat_name, |
| 82 int64 stat_value); | 84 int64 stat_value); |
| 83 | 85 |
| 84 void AddStringSyncDetails(ListValue* details, const std::string& stat_name, | 86 void AddStringSyncDetails(ListValue* details, const std::string& stat_name, |
| 85 const std::string& stat_value); | 87 const std::string& stat_value); |
| 86 | 88 |
| 87 } // namespace sync_ui_util | 89 } // namespace sync_ui_util |
| 88 #endif // CHROME_BROWSER_SYNC_SYNC_UI_UTIL_H_ | 90 #endif // CHROME_BROWSER_SYNC_SYNC_UI_UTIL_H_ |
| OLD | NEW |