ContainerBoxObject.h 859 B

123456789101112131415161718192021222324252627282930313233
  1. /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* vim:set ts=2 sw=2 sts=2 et cindent: */
  3. /* This Source Code Form is subject to the terms of the Mozilla Public
  4. * License, v. 2.0. If a copy of the MPL was not distributed with this
  5. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  6. #ifndef mozilla_dom_ContainerBoxObject_h
  7. #define mozilla_dom_ContainerBoxObject_h
  8. #include "mozilla/dom/BoxObject.h"
  9. #include "nsIDocShell.h"
  10. namespace mozilla {
  11. namespace dom {
  12. class ContainerBoxObject final : public BoxObject
  13. {
  14. public:
  15. ContainerBoxObject();
  16. virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
  17. already_AddRefed<nsIDocShell> GetDocShell();
  18. private:
  19. ~ContainerBoxObject();
  20. };
  21. } // namespace dom
  22. } // namespace mozilla
  23. #endif // mozilla_dom_ContainerBoxObject_h