1 // Copyright 2018 the V8 project 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. 4 5 #ifndef V8_INSPECTOR_CUSTOM_PREVIEW_H_ 6 #define V8_INSPECTOR_CUSTOM_PREVIEW_H_ 7 8 #include <memory> 9 10 #include "src/inspector/protocol/Protocol.h" 11 #include "src/inspector/protocol/Runtime.h" 12 13 namespace v8_inspector { 14 15 const int kMaxCustomPreviewDepth = 20; 16 17 void generateCustomPreview( 18 int sessionId, const String16& groupName, v8::Local<v8::Object> object, 19 v8::MaybeLocal<v8::Value> config, int maxDepth, 20 std::unique_ptr<protocol::Runtime::CustomPreview>* preview); 21 22 } // namespace v8_inspector 23 24 #endif // V8_INSPECTOR_CUSTOM_PREVIEW_H_ 25