tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

HTMLPictureElement.h (1567B)


      1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
      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 
      7 #ifndef mozilla_dom_HTMLPictureElement_h
      8 #define mozilla_dom_HTMLPictureElement_h
      9 
     10 #include "nsGenericHTMLElement.h"
     11 
     12 namespace mozilla {
     13 class ErrorResult;
     14 namespace dom {
     15 
     16 class HTMLPictureElement final : public nsGenericHTMLElement {
     17 public:
     18  explicit HTMLPictureElement(
     19      already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
     20 
     21  // nsISupports
     22  NS_INLINE_DECL_REFCOUNTING_INHERITED(HTMLPictureElement, nsGenericHTMLElement)
     23 
     24  nsresult Clone(dom::NodeInfo*, nsINode** aResult) const override;
     25  void RemoveChildNode(
     26      nsIContent* aKid, bool aNotify, const BatchRemovalState* aState,
     27      nsINode* aNewParent = nullptr,
     28      MutationEffectOnScript aMutationEffectOnScript =
     29          MutationEffectOnScript::DropTrustWorthiness) override;
     30  void InsertChildBefore(
     31      nsIContent* aKid, nsIContent* aBeforeThis, bool aNotify, ErrorResult& aRv,
     32      nsINode* aOldParent = nullptr,
     33      MutationEffectOnScript aMutationEffectOnScript =
     34          MutationEffectOnScript::DropTrustWorthiness) override;
     35 
     36 protected:
     37  virtual ~HTMLPictureElement();
     38 
     39  JSObject* WrapNode(JSContext*, JS::Handle<JSObject*> aGivenProto) override;
     40 };
     41 
     42 }  // namespace dom
     43 }  // namespace mozilla
     44 
     45 #endif  // mozilla_dom_HTMLPictureElement_h