1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/editor/libeditor/html/nsHTMLURIRefObject.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,45 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 + 1.10 +#include "nsCOMPtr.h" 1.11 +#include "nsISupportsImpl.h" 1.12 +#include "nsIURIRefObject.h" 1.13 +#include "nscore.h" 1.14 + 1.15 +class nsIDOMMozNamedAttrMap; 1.16 +class nsIDOMNode; 1.17 + 1.18 +#ifndef nsHTMLURIRefObject_h__ 1.19 +#define nsHTMLURIRefObject_h__ 1.20 + 1.21 +#define NS_URI_REF_OBJECT_CID \ 1.22 +{ /* {bdd79df6-1dd1-11b2-b29c-c3d63a58f1d2} */ \ 1.23 + 0xbdd79df6, 0x1dd1, 0x11b2, \ 1.24 + { 0xb2, 0x9c, 0xc3, 0xd6, 0x3a, 0x58, 0xf1, 0xd2 } \ 1.25 +} 1.26 + 1.27 +class nsHTMLURIRefObject : public nsIURIRefObject 1.28 +{ 1.29 +public: 1.30 + nsHTMLURIRefObject(); 1.31 + virtual ~nsHTMLURIRefObject(); 1.32 + 1.33 + // Interfaces for addref and release and queryinterface 1.34 + NS_DECL_ISUPPORTS 1.35 + 1.36 + NS_DECL_NSIURIREFOBJECT 1.37 + 1.38 +protected: 1.39 + nsCOMPtr<nsIDOMNode> mNode; 1.40 + nsCOMPtr<nsIDOMMozNamedAttrMap> mAttributes; 1.41 + uint32_t mCurAttrIndex; 1.42 + uint32_t mAttributeCnt; 1.43 +}; 1.44 + 1.45 +nsresult NS_NewHTMLURIRefObject(nsIURIRefObject** aResult, nsIDOMNode* aNode); 1.46 + 1.47 +#endif /* nsHTMLURIRefObject_h__ */ 1.48 +