dict_util.h 639 B

123456789101112131415161718192021
  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 ELECTRON_SHELL_BROWSER_MAC_DICT_UTIL_H_
  5. #define ELECTRON_SHELL_BROWSER_MAC_DICT_UTIL_H_
  6. #import <Foundation/Foundation.h>
  7. #include "base/values.h"
  8. namespace electron {
  9. NSArray* ListValueToNSArray(const base::Value::List& value);
  10. base::Value::List NSArrayToValue(NSArray* arr);
  11. NSDictionary* DictionaryValueToNSDictionary(const base::Value::Dict& value);
  12. base::Value::Dict NSDictionaryToValue(NSDictionary* dict);
  13. } // namespace electron
  14. #endif // ELECTRON_SHELL_BROWSER_MAC_DICT_UTIL_H_