michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* vim: set ts=2 et sw=2 tw=80: */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef mozilla_a11y_sdnDocAccessible_h_ michael@0: #define mozilla_a11y_sdnDocAccessible_h_ michael@0: michael@0: #include "ISimpleDOMDocument.h" michael@0: #include "IUnknownImpl.h" michael@0: michael@0: #include "DocAccessibleWrap.h" michael@0: michael@0: namespace mozilla { michael@0: namespace a11y { michael@0: michael@0: class sdnDocAccessible MOZ_FINAL : public ISimpleDOMDocument michael@0: { michael@0: public: michael@0: sdnDocAccessible(DocAccessibleWrap* aAccessible) : mAccessible(aAccessible) {}; michael@0: ~sdnDocAccessible() { }; michael@0: michael@0: DECL_IUNKNOWN michael@0: michael@0: // ISimpleDOMDocument michael@0: virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_URL( michael@0: /* [out] */ BSTR __RPC_FAR *url); michael@0: michael@0: virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_title( michael@0: /* [out] */ BSTR __RPC_FAR *title); michael@0: michael@0: virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_mimeType( michael@0: /* [out] */ BSTR __RPC_FAR *mimeType); michael@0: michael@0: virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_docType( michael@0: /* [out] */ BSTR __RPC_FAR *docType); michael@0: michael@0: virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_nameSpaceURIForID( michael@0: /* [in] */ short nameSpaceID, michael@0: /* [out] */ BSTR __RPC_FAR *nameSpaceURI); michael@0: michael@0: virtual /* [id] */ HRESULT STDMETHODCALLTYPE put_alternateViewMediaTypes( michael@0: /* [in] */ BSTR __RPC_FAR *commaSeparatedMediaTypes); michael@0: michael@0: protected: michael@0: nsRefPtr mAccessible; michael@0: }; michael@0: michael@0: } // namespace a11y michael@0: } // namespace mozilla michael@0: michael@0: #endif