2020-01-18 05:38:21 -03:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
|
|
|
|
*
|
2021-04-22 05:24:48 -03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-01-18 05:38:21 -03:00
|
|
|
*/
|
|
|
|
|
|
2019-08-19 15:29:52 -03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <AK/JsonObject.h>
|
|
|
|
|
#include <AK/NonnullOwnPtrVector.h>
|
2020-09-18 04:49:51 -03:00
|
|
|
#include <AK/String.h>
|
2019-08-19 15:29:52 -03:00
|
|
|
#include <AK/Vector.h>
|
|
|
|
|
|
2020-09-25 16:03:29 -03:00
|
|
|
namespace Inspector {
|
|
|
|
|
|
2019-08-19 15:29:52 -03:00
|
|
|
class RemoteObjectPropertyModel;
|
|
|
|
|
|
|
|
|
|
class RemoteObject {
|
|
|
|
|
public:
|
|
|
|
|
RemoteObject();
|
|
|
|
|
|
|
|
|
|
RemoteObjectPropertyModel& property_model();
|
|
|
|
|
|
|
|
|
|
RemoteObject* parent { nullptr };
|
|
|
|
|
NonnullOwnPtrVector<RemoteObject> children;
|
|
|
|
|
|
2020-03-08 06:36:51 -03:00
|
|
|
FlatPtr address { 0 };
|
|
|
|
|
FlatPtr parent_address { 0 };
|
2019-08-19 15:29:52 -03:00
|
|
|
String class_name;
|
|
|
|
|
String name;
|
|
|
|
|
|
|
|
|
|
JsonObject json;
|
|
|
|
|
|
|
|
|
|
NonnullRefPtr<RemoteObjectPropertyModel> m_property_model;
|
|
|
|
|
};
|
2020-09-25 16:03:29 -03:00
|
|
|
|
|
|
|
|
}
|