RootAccessibleWrap.cpp (691B)
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 #include "RootAccessibleWrap.h" 8 9 #include "atk/atkobject.h" 10 #include "nsTArray.h" 11 12 #include <glib-object.h> 13 14 using namespace mozilla::a11y; 15 16 GtkWindowAccessible::GtkWindowAccessible(AtkObject* aAccessible) { 17 g_object_ref(aAccessible); 18 mAtkObject = aAccessible; 19 } 20 21 GtkWindowAccessible::~GtkWindowAccessible() { 22 g_object_unref(mAtkObject); 23 mAtkObject = nullptr; 24 }