2016-05-05 07:26:44 +00:00
|
|
|
// 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 ATOM_BROWSER_MAC_DICT_UTIL_H_
|
|
|
|
#define ATOM_BROWSER_MAC_DICT_UTIL_H_
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
|
|
|
#include "base/memory/scoped_ptr.h"
|
|
|
|
|
|
|
|
namespace base {
|
2016-06-02 01:53:49 +00:00
|
|
|
class ListValue;
|
2016-05-05 07:26:44 +00:00
|
|
|
class DictionaryValue;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace atom {
|
|
|
|
|
|
|
|
NSDictionary* DictionaryValueToNSDictionary(const base::DictionaryValue& value);
|
|
|
|
|
2016-05-23 01:59:39 +00:00
|
|
|
std::unique_ptr<base::DictionaryValue> NSDictionaryToDictionaryValue(
|
2016-05-05 07:26:44 +00:00
|
|
|
NSDictionary* dict);
|
|
|
|
|
2016-06-02 01:53:49 +00:00
|
|
|
std::unique_ptr<base::ListValue> NSArrayToListValue(NSArray* arr);
|
|
|
|
|
2016-05-05 07:26:44 +00:00
|
|
|
} // namespace atom
|
|
|
|
|
|
|
|
#endif // ATOM_BROWSER_MAC_DICT_UTIL_H_
|