HostObjectBase.h 687 B

123456789101112131415161718
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. #pragma once
  6. namespace Js
  7. {
  8. class HostObjectBase : public DynamicObject
  9. {
  10. public:
  11. virtual Js::ModuleRoot * GetModuleRoot(ModuleID moduleID) = 0;
  12. protected:
  13. DEFINE_VTABLE_CTOR(HostObjectBase, DynamicObject);
  14. HostObjectBase(DynamicType * type) : DynamicObject(type) {};
  15. };
  16. };