electron/shell/browser/mac/dict_util.h
Jeremy Rose 11924bdbb2
chore: modernize ListValue usage in dict_util.mm and related files (#34661)
* chore: modernize ListValue usage in dict_util.mm and related files

* use base::Value::{Dict,List} instead of raw base::Value

* fix compile

* fix build

* fix build again
2022-06-23 15:28:41 +09:00

21 lines
639 B
Objective-C

// Copyright (c) 2016 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef ELECTRON_SHELL_BROWSER_MAC_DICT_UTIL_H_
#define ELECTRON_SHELL_BROWSER_MAC_DICT_UTIL_H_
#import <Foundation/Foundation.h>
#include "base/values.h"
namespace electron {
NSArray* ListValueToNSArray(const base::Value::List& value);
base::Value::List NSArrayToValue(NSArray* arr);
NSDictionary* DictionaryValueToNSDictionary(const base::Value::Dict& value);
base::Value::Dict NSDictionaryToValue(NSDictionary* dict);
} // namespace electron
#endif // ELECTRON_SHELL_BROWSER_MAC_DICT_UTIL_H_