dict_util.h 683 B

123456789101112131415161718192021222324
  1. // Copyright (c) 2016 GitHub, Inc.
  2. // Use of this source code is governed by the MIT license that can be
  3. // found in the LICENSE file.
  4. #ifndef SHELL_BROWSER_MAC_DICT_UTIL_H_
  5. #define SHELL_BROWSER_MAC_DICT_UTIL_H_
  6. #import <Foundation/Foundation.h>
  7. namespace base {
  8. class ListValue;
  9. class DictionaryValue;
  10. } // namespace base
  11. namespace electron {
  12. NSArray* ListValueToNSArray(const base::ListValue& value);
  13. base::ListValue NSArrayToListValue(NSArray* arr);
  14. NSDictionary* DictionaryValueToNSDictionary(const base::DictionaryValue& value);
  15. base::DictionaryValue NSDictionaryToDictionaryValue(NSDictionary* dict);
  16. } // namespace electron
  17. #endif // SHELL_BROWSER_MAC_DICT_UTIL_H_