Home | History | Annotate | Download | only in brillo

Lines Matching refs:Value

18 // This file provides a set of helper functions to convert between base::Value
34 inline bool FromValue(const base::Value& in_value, bool* out_value) {
38 inline bool FromValue(const base::Value& in_value, int* out_value) {
42 inline bool FromValue(const base::Value& in_value, double* out_value) {
46 inline bool FromValue(const base::Value& in_value, std::string* out_value) {
50 inline bool FromValue(const base::Value& in_value,
55 inline bool FromValue(const base::Value& in_value,
60 BRILLO_EXPORT bool FromValue(const base::Value& in_value,
62 BRILLO_EXPORT bool FromValue(const base::Value& in_value,
66 bool FromValue(const base::Value& in_value,
70 bool FromValue(const base::Value& in_value, std::vector<T, Alloc>* out_value) {
77 T value{};
78 if (!FromValue(item, &value))
80 out_value->push_back(std::move(value));
86 bool FromValue(const base::Value& in_value,
93 if (!FromValue(it.value(), &(*out_value)[it.key()]))
100 T FromValue(const base::Value& value) {
102 CHECK(FromValue(value, &out_value));
106 BRILLO_EXPORT std::unique_ptr<base::Value> ToValue(int value);
107 BRILLO_EXPORT std::unique_ptr<base::Value> ToValue(bool value);
108 BRILLO_EXPORT std::unique_ptr<base::Value> ToValue(double value);
109 BRILLO_EXPORT std::unique_ptr<base::Value> ToValue(const std::string& value);
112 BRILLO_EXPORT std::unique_ptr<base::Value> ToValue(const char* value);
115 std::unique_ptr<base::Value> ToValue(
119 std::unique_ptr<base::Value> ToValue(const std::vector<T, Alloc>& list) {
121 for (const auto& value : list)
122 result->Append(ToValue(value));
127 std::unique_ptr<base::Value> ToValue(