parser/xml/nsSAXAttributes.h
author Brian Birtles <birtles@gmail.com>
Mon, 07 May 2018 11:07:01 +0900
changeset 417867 5f8a3f4a435a734c4fd954cb55b8780395ac1b4a
parent 391617 a71af18b39d0115e57e9f2be8a58e2018873f7d4
child 448947 6f3709b3878117466168c40affa7bca0b60cf75b
permissions -rw-r--r--
Bug 1456394 - Move KeyframeEffect constructors to KeyframeEffectReadOnly.{h,cpp}; r=bz,hiro By doing this we will have all the KeyframeEffect* related code in KeyframeEffectReadOnly.{h,cpp} so we can rename them to KeyframeEffect.{h,cpp} in the next patch and make it easier to examine the history for the bulk of this code. The added [HeaderFile] annotation will be removed in a subsequent patch in this series. MozReview-Commit-ID: Fxk6fPukgAS

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#ifndef nsSAXAttributes_h__
#define nsSAXAttributes_h__

#include "nsISupports.h"
#include "nsISAXAttributes.h"
#include "nsTArray.h"
#include "nsString.h"
#include "mozilla/Attributes.h"

struct SAXAttr
{
  nsString uri;
  nsString localName;
  nsString qName;
  nsString type;
  nsString value;
};

class nsSAXAttributes final : public nsISAXAttributes
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSISAXATTRIBUTES

  nsresult AddAttribute(const nsAString &aURI,
                        const nsAString &aLocalName,
                        const nsAString &aQName,
                        const nsAString &aType,
                        const nsAString &aValue);

private:
  ~nsSAXAttributes() {}
  nsTArray<SAXAttr> mAttrs;
};

#endif // nsSAXAttributes_h__