[Session restore] Rename group name Enabled to Restore.
[chromium-blink-merge.git] / tools / gn / input_conversion.h
blobe6d5f6eab329932427367c8f73c4d06f32462476
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef TOOLS_GN_INPUT_CONVERSION_H_
6 #define TOOLS_GN_INPUT_CONVERSION_H_
8 #include <string>
10 class Err;
11 class ParseNode;
12 class Settings;
13 class Value;
15 extern const char kInputConversion_Help[];
17 // Converts the given input string (is read from a file or output from a
18 // script) to a Value. Conversions as specified in the input_conversion string
19 // will be performed. The given origin will be used for constructing the
20 // resulting Value.
22 // If the conversion string is invalid, the error will be set and an empty
23 // value will be returned.
24 Value ConvertInputToValue(const Settings* settings,
25 const std::string& input,
26 const ParseNode* origin,
27 const Value& input_conversion_value,
28 Err* err);
30 #endif // TOOLS_GN_INPUT_CONVERSION_H_