Home | History | Annotate | Download | only in sync
      1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #ifndef CHROME_BROWSER_SYNC_SYNC_UI_UTIL_MAC_H_
      6 #define CHROME_BROWSER_SYNC_SYNC_UI_UTIL_MAC_H_
      7 #pragma once
      8 
      9 #include "chrome/browser/sync/sync_ui_util.h"
     10 
     11 #import <Cocoa/Cocoa.h>
     12 
     13 class Profile;
     14 
     15 namespace sync_ui_util {
     16 
     17 // Updates a bookmark sync UI item (expected to be a menu item). This is
     18 // called every time a menu containing a sync UI item is displayed.
     19 void UpdateSyncItem(id syncItem, BOOL syncEnabled, Profile* profile);
     20 
     21 // This function (used by UpdateSyncItem) is only exposed for testing.
     22 // Just use UpdateSyncItem() instead.
     23 void UpdateSyncItemForStatus(id syncItem, BOOL syncEnabled,
     24                              sync_ui_util::MessageType status);
     25 
     26 }  // namespace sync_ui_util
     27 
     28 #endif  // CHROME_BROWSER_SYNC_SYNC_UI_UTIL_MAC_H_
     29 
     30