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_MAC_H_ | 5 #ifndef CHROME_BROWSER_SYNC_SYNC_UI_UTIL_MAC_H_ |
6 #define CHROME_BROWSER_SYNC_SYNC_UI_UTIL_MAC_H_ | 6 #define CHROME_BROWSER_SYNC_SYNC_UI_UTIL_MAC_H_ |
7 #pragma once | |
8 | 7 |
9 #include <string> | 8 #include <string> |
10 | 9 |
11 #include "chrome/browser/sync/sync_ui_util.h" | 10 #include "chrome/browser/sync/sync_ui_util.h" |
12 | 11 |
13 #import <Cocoa/Cocoa.h> | 12 #import <Cocoa/Cocoa.h> |
14 | 13 |
15 class Profile; | 14 class Profile; |
16 | 15 |
17 namespace sync_ui_util { | 16 namespace sync_ui_util { |
18 | 17 |
19 // Updates a bookmark sync UI item (expected to be a menu item). This is | 18 // Updates a bookmark sync UI item (expected to be a menu item). This is |
20 // called every time a menu containing a sync UI item is displayed. | 19 // called every time a menu containing a sync UI item is displayed. |
21 void UpdateSyncItem(id syncItem, BOOL syncEnabled, Profile* profile); | 20 void UpdateSyncItem(id syncItem, BOOL syncEnabled, Profile* profile); |
22 | 21 |
23 // This function (used by UpdateSyncItem) is only exposed for testing. | 22 // This function (used by UpdateSyncItem) is only exposed for testing. |
24 // Just use UpdateSyncItem() instead. | 23 // Just use UpdateSyncItem() instead. |
25 void UpdateSyncItemForStatus(id syncItem, BOOL syncEnabled, | 24 void UpdateSyncItemForStatus(id syncItem, BOOL syncEnabled, |
26 sync_ui_util::MessageType status, | 25 sync_ui_util::MessageType status, |
27 const std::string& userName); | 26 const std::string& userName); |
28 | 27 |
29 } // namespace sync_ui_util | 28 } // namespace sync_ui_util |
30 | 29 |
31 #endif // CHROME_BROWSER_SYNC_SYNC_UI_UTIL_MAC_H_ | 30 #endif // CHROME_BROWSER_SYNC_SYNC_UI_UTIL_MAC_H_ |
32 | 31 |
OLD | NEW |