tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

ServiceProvider.h (1025B)


      1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* vim: set ts=8 sts=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_ServiceProvider_h_
      8 #define mozilla_a11y_ServiceProvider_h_
      9 
     10 #include <servprov.h>
     11 
     12 #include "IUnknownImpl.h"
     13 #include "MsaaAccessible.h"
     14 
     15 namespace mozilla {
     16 namespace a11y {
     17 
     18 class ServiceProvider final : public IServiceProvider {
     19 public:
     20  explicit ServiceProvider(MsaaAccessible* aMsaa) : mMsaa(aMsaa) {}
     21  ~ServiceProvider() {}
     22 
     23  DECL_IUNKNOWN
     24 
     25  // IServiceProvider
     26  virtual HRESULT STDMETHODCALLTYPE QueryService(REFGUID aGuidService,
     27                                                 REFIID aIID,
     28                                                 void** aInstancePtr);
     29 
     30 private:
     31  RefPtr<MsaaAccessible> mMsaa;
     32 };
     33 
     34 }  // namespace a11y
     35 }  // namespace mozilla
     36 
     37 #endif