tor-browser

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

ApplicationAccessibleWrap.cpp (1171B)


      1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* vim:expandtab:shiftwidth=4:tabstop=4:
      3 */
      4 /* This Source Code Form is subject to the terms of the Mozilla Public
      5 * License, v. 2.0. If a copy of the MPL was not distributed with this
      6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      7 
      8 #include "ApplicationAccessibleWrap.h"
      9 
     10 #include "nsIGfxInfo.h"
     11 #include "AccAttributes.h"
     12 #include "nsServiceManagerUtils.h"
     13 #include "mozilla/Components.h"
     14 #include "MsaaAccessible.h"
     15 
     16 using namespace mozilla;
     17 using namespace mozilla::a11y;
     18 
     19 ////////////////////////////////////////////////////////////////////////////////
     20 // nsISupports
     21 NS_IMPL_ISUPPORTS_INHERITED0(ApplicationAccessibleWrap, ApplicationAccessible)
     22 
     23 already_AddRefed<AccAttributes> ApplicationAccessibleWrap::NativeAttributes() {
     24  RefPtr<AccAttributes> attributes = new AccAttributes();
     25  return attributes.forget();
     26 }
     27 
     28 void ApplicationAccessibleWrap::Shutdown() {
     29  // ApplicationAccessible::Shutdown doesn't call AccessibleWrap::Shutdown, so
     30  // we have to call MsaaShutdown here.
     31  if (mMsaa) {
     32    mMsaa->MsaaShutdown();
     33  }
     34  ApplicationAccessible::Shutdown();
     35 }