accessible/src/windows/sdn/sdnDocAccessible.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/accessible/src/windows/sdn/sdnDocAccessible.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,53 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* vim: set ts=2 et sw=2 tw=80: */
     1.6 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.9 +
    1.10 +#ifndef mozilla_a11y_sdnDocAccessible_h_
    1.11 +#define mozilla_a11y_sdnDocAccessible_h_
    1.12 +
    1.13 +#include "ISimpleDOMDocument.h"
    1.14 +#include "IUnknownImpl.h"
    1.15 +
    1.16 +#include "DocAccessibleWrap.h"
    1.17 +
    1.18 +namespace mozilla {
    1.19 +namespace a11y {
    1.20 +
    1.21 +class sdnDocAccessible MOZ_FINAL : public ISimpleDOMDocument
    1.22 +{
    1.23 +public:
    1.24 +  sdnDocAccessible(DocAccessibleWrap* aAccessible) : mAccessible(aAccessible) {};
    1.25 +  ~sdnDocAccessible() { };
    1.26 +
    1.27 +  DECL_IUNKNOWN
    1.28 +
    1.29 +  // ISimpleDOMDocument
    1.30 +  virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_URL(
    1.31 +    /* [out] */ BSTR __RPC_FAR *url);
    1.32 +
    1.33 +  virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_title(
    1.34 +    /* [out] */ BSTR __RPC_FAR *title);
    1.35 +
    1.36 +  virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_mimeType(
    1.37 +    /* [out] */ BSTR __RPC_FAR *mimeType);
    1.38 +
    1.39 +  virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_docType(
    1.40 +    /* [out] */ BSTR __RPC_FAR *docType);
    1.41 +
    1.42 +  virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_nameSpaceURIForID(
    1.43 +    /* [in] */ short nameSpaceID,
    1.44 +    /* [out] */ BSTR __RPC_FAR *nameSpaceURI);
    1.45 +
    1.46 +  virtual /* [id] */ HRESULT STDMETHODCALLTYPE put_alternateViewMediaTypes(
    1.47 +    /* [in] */ BSTR __RPC_FAR *commaSeparatedMediaTypes);
    1.48 +
    1.49 +protected:
    1.50 +  nsRefPtr<DocAccessibleWrap> mAccessible;
    1.51 +};
    1.52 +
    1.53 +} // namespace a11y
    1.54 +} // namespace mozilla
    1.55 +
    1.56 +#endif

mercurial