sdnDocAccessible.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #ifndef mozilla_a11y_sdnDocAccessible_h_
  6. #define mozilla_a11y_sdnDocAccessible_h_
  7. #include "ISimpleDOMDocument.h"
  8. #include "IUnknownImpl.h"
  9. #include "DocAccessibleWrap.h"
  10. namespace mozilla {
  11. namespace a11y {
  12. class sdnDocAccessible final : public ISimpleDOMDocument
  13. {
  14. public:
  15. sdnDocAccessible(DocAccessibleWrap* aAccessible) : mAccessible(aAccessible) {};
  16. ~sdnDocAccessible() { };
  17. DECL_IUNKNOWN
  18. // ISimpleDOMDocument
  19. virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_URL(
  20. /* [out] */ BSTR __RPC_FAR *url);
  21. virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_title(
  22. /* [out] */ BSTR __RPC_FAR *title);
  23. virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_mimeType(
  24. /* [out] */ BSTR __RPC_FAR *mimeType);
  25. virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_docType(
  26. /* [out] */ BSTR __RPC_FAR *docType);
  27. virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_nameSpaceURIForID(
  28. /* [in] */ short nameSpaceID,
  29. /* [out] */ BSTR __RPC_FAR *nameSpaceURI);
  30. virtual /* [id] */ HRESULT STDMETHODCALLTYPE put_alternateViewMediaTypes(
  31. /* [in] */ BSTR __RPC_FAR *commaSeparatedMediaTypes);
  32. protected:
  33. RefPtr<DocAccessibleWrap> mAccessible;
  34. };
  35. } // namespace a11y
  36. } // namespace mozilla
  37. #endif