Bug 1700051: part 36) Reduce accessibility of `SoftText::mBegin` to `private`. r...
[gecko.git] / accessible / atk / AtkSocketAccessible.h
blob2117e4c4dd23fa5265e49ee24b9e7f22f0af105a
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/. */
7 #ifndef _AtkSocketAccessible_H_
8 #define _AtkSocketAccessible_H_
10 #include "AccessibleWrap.h"
12 // This file gets included by nsAccessibilityService.cpp, which can't include
13 // atk.h (or glib.h), so we can't rely on it being included.
14 #ifdef __ATK_H__
15 extern "C" typedef void (*AtkSocketEmbedType)(AtkSocket*, gchar*);
16 #else
17 extern "C" typedef void (*AtkSocketEmbedType)(void*, void*);
18 #endif
20 namespace mozilla {
21 namespace a11y {
23 /**
24 * Provides a AccessibleWrap wrapper around AtkSocket for out-of-process
25 * accessibles.
27 class AtkSocketAccessible : public AccessibleWrap {
28 public:
29 // Soft references to AtkSocket
30 static AtkSocketEmbedType g_atk_socket_embed;
31 #ifdef __ATK_H__
32 static GType g_atk_socket_type;
33 #endif
34 static const char* sATKSocketEmbedSymbol;
35 static const char* sATKSocketGetTypeSymbol;
38 * True if the current Atk version supports AtkSocket and it was correctly
39 * loaded.
41 static bool gCanEmbed;
43 AtkSocketAccessible(nsIContent* aContent, DocAccessible* aDoc,
44 const nsCString& aPlugId);
46 virtual void Shutdown() override;
48 virtual void GetNativeInterface(void** aOutAccessible) override;
51 } // namespace a11y
52 } // namespace mozilla
54 #endif