content/base/public/nsIAttribute.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
michael@0 2 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 5
michael@0 6 #ifndef nsIAttribute_h___
michael@0 7 #define nsIAttribute_h___
michael@0 8
michael@0 9 #include "nsINode.h"
michael@0 10
michael@0 11 class nsDOMAttributeMap;
michael@0 12 class nsIContent;
michael@0 13
michael@0 14 #define NS_IATTRIBUTE_IID \
michael@0 15 { 0x233a9c4d, 0xb27f, 0x4662, \
michael@0 16 { 0xbd, 0x90, 0xba, 0xd6, 0x2e, 0x76, 0xc8, 0xe1 } }
michael@0 17
michael@0 18 class nsIAttribute : public nsINode
michael@0 19 {
michael@0 20 public:
michael@0 21 NS_DECLARE_STATIC_IID_ACCESSOR(NS_IATTRIBUTE_IID)
michael@0 22
michael@0 23 virtual void SetMap(nsDOMAttributeMap *aMap) = 0;
michael@0 24
michael@0 25 nsDOMAttributeMap *GetMap()
michael@0 26 {
michael@0 27 return mAttrMap;
michael@0 28 }
michael@0 29
michael@0 30 nsINodeInfo *NodeInfo() const
michael@0 31 {
michael@0 32 return mNodeInfo;
michael@0 33 }
michael@0 34
michael@0 35 /**
michael@0 36 * Called when our ownerElement is moved into a new document.
michael@0 37 * Updates the nodeinfo of this node.
michael@0 38 */
michael@0 39 virtual nsresult SetOwnerDocument(nsIDocument* aDocument) = 0;
michael@0 40
michael@0 41 protected:
michael@0 42 #ifdef MOZILLA_INTERNAL_API
michael@0 43 nsIAttribute(nsDOMAttributeMap *aAttrMap,
michael@0 44 already_AddRefed<nsINodeInfo>& aNodeInfo,
michael@0 45 bool aNsAware);
michael@0 46 #endif //MOZILLA_INTERNAL_API
michael@0 47 virtual ~nsIAttribute();
michael@0 48
michael@0 49 nsRefPtr<nsDOMAttributeMap> mAttrMap;
michael@0 50 bool mNsAware;
michael@0 51 };
michael@0 52
michael@0 53 NS_DEFINE_STATIC_IID_ACCESSOR(nsIAttribute, NS_IATTRIBUTE_IID)
michael@0 54
michael@0 55 #endif /* nsIAttribute_h___ */

mercurial