summaryrefslogtreecommitdiff
path: root/Userland/DevTools/Inspector/RemoteObject.h
blob: a02b99fa80499d63539ee4c25eb0c14429e091cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include <AK/DeprecatedString.h>
#include <AK/JsonObject.h>

namespace Inspector {

class RemoteObjectPropertyModel;

class RemoteObject {
public:
    RemoteObject();

    RemoteObjectPropertyModel& property_model();

    RemoteObject* parent { nullptr };
    Vector<NonnullOwnPtr<RemoteObject>> children;

    FlatPtr address { 0 };
    FlatPtr parent_address { 0 };
    DeprecatedString class_name;
    DeprecatedString name;

    JsonObject json;

    NonnullRefPtr<RemoteObjectPropertyModel> m_property_model;
};

}