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