RemoteObject.h 687 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <AK/DeprecatedString.h>
  8. #include <AK/JsonObject.h>
  9. #include <AK/NonnullOwnPtrVector.h>
  10. namespace Inspector {
  11. class RemoteObjectPropertyModel;
  12. class RemoteObject {
  13. public:
  14. RemoteObject();
  15. RemoteObjectPropertyModel& property_model();
  16. RemoteObject* parent { nullptr };
  17. Vector<NonnullOwnPtr<RemoteObject>> children;
  18. FlatPtr address { 0 };
  19. FlatPtr parent_address { 0 };
  20. DeprecatedString class_name;
  21. DeprecatedString name;
  22. JsonObject json;
  23. NonnullRefPtr<RemoteObjectPropertyModel> m_property_model;
  24. };
  25. }