accessible/src/windows/msaa/ServiceProvider.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/accessible/src/windows/msaa/ServiceProvider.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,38 @@
     1.4 +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* vim: set ts=8 sts=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_ServiceProvider_h_
    1.11 +#define mozilla_a11y_ServiceProvider_h_
    1.12 +
    1.13 +#include <servprov.h>
    1.14 +
    1.15 +#include "AccessibleWrap.h"
    1.16 +#include "IUnknownImpl.h"
    1.17 +
    1.18 +namespace mozilla {
    1.19 +namespace a11y {
    1.20 +
    1.21 +class ServiceProvider MOZ_FINAL : public IServiceProvider
    1.22 +{
    1.23 +public:
    1.24 +  ServiceProvider(AccessibleWrap* aAcc) : mAccessible(aAcc) {}
    1.25 +  ~ServiceProvider() {}
    1.26 +
    1.27 +  DECL_IUNKNOWN
    1.28 +
    1.29 +  // IServiceProvider
    1.30 +  virtual HRESULT STDMETHODCALLTYPE QueryService(REFGUID aGuidService,
    1.31 +                                                 REFIID aIID,
    1.32 +                                                 void** aInstancePtr);
    1.33 +
    1.34 +private:
    1.35 +  nsRefPtr<AccessibleWrap> mAccessible;
    1.36 +};
    1.37 +
    1.38 +}
    1.39 +}
    1.40 +
    1.41 +#endif

mercurial