Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Side by Side Diff: include/v8.h

Issue 1922603006: [JSON] implement indentation in the BasicJsonStringifier and expose via API. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** \mainpage V8 API Reference Guide 5 /** \mainpage V8 API Reference Guide
6 * 6 *
7 * V8 is Google's open source JavaScript engine. 7 * V8 is Google's open source JavaScript engine.
8 * 8 *
9 * This set of documents provides reference material generated from the 9 * This set of documents provides reference material generated from the
10 * V8 header file, include/v8.h. 10 * V8 header file, include/v8.h.
(...skipping 1640 matching lines...) Expand 10 before | Expand all | Expand 10 after
1651 Local<Context> context, Local<String> json_string); 1651 Local<Context> context, Local<String> json_string);
1652 1652
1653 /** 1653 /**
1654 * Tries to stringify the JSON-serializable object |json_object| and returns 1654 * Tries to stringify the JSON-serializable object |json_object| and returns
1655 * it as string if successful. 1655 * it as string if successful.
1656 * 1656 *
1657 * \param json_object The JSON-serializable object to stringify. 1657 * \param json_object The JSON-serializable object to stringify.
1658 * \return The corresponding string if successfully stringified. 1658 * \return The corresponding string if successfully stringified.
1659 */ 1659 */
1660 static V8_WARN_UNUSED_RESULT MaybeLocal<String> Stringify( 1660 static V8_WARN_UNUSED_RESULT MaybeLocal<String> Stringify(
1661 Local<Context> context, Local<Object> json_object); 1661 Local<Context> context, Local<Object> json_object,
1662 Local<String> gap = Local<String>());
1662 }; 1663 };
1663 1664
1664 1665
1665 /** 1666 /**
1666 * A map whose keys are referenced weakly. It is similar to JavaScript WeakMap 1667 * A map whose keys are referenced weakly. It is similar to JavaScript WeakMap
1667 * but can be created without entering a v8::Context and hence shouldn't 1668 * but can be created without entering a v8::Context and hence shouldn't
1668 * escape to JavaScript. 1669 * escape to JavaScript.
1669 */ 1670 */
1670 class V8_EXPORT NativeWeakMap : public Data { 1671 class V8_EXPORT NativeWeakMap : public Data {
1671 public: 1672 public:
(...skipping 7071 matching lines...) Expand 10 before | Expand all | Expand 10 after
8743 */ 8744 */
8744 8745
8745 8746
8746 } // namespace v8 8747 } // namespace v8
8747 8748
8748 8749
8749 #undef TYPE_CHECK 8750 #undef TYPE_CHECK
8750 8751
8751 8752
8752 #endif // INCLUDE_V8_H_ 8753 #endif // INCLUDE_V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698