Skip to content

Commit

Permalink
Bug 1821963 part 2: Remove COM registration supporting the old access…
Browse files Browse the repository at this point in the history
…ibility architecture based on content process COM proxies. r=nlapre,bobowen

Differential Revision: https://phabricator.services.mozilla.com/D177962
  • Loading branch information
jcsteh committed May 22, 2023
1 parent fb07ae8 commit 13afc4e
Show file tree
Hide file tree
Showing 22 changed files with 4 additions and 823 deletions.
37 changes: 0 additions & 37 deletions accessible/ipc/IPCTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,43 +164,6 @@ typedef uint32_t role;
* define types used by PDocAccessible differently depending on platform.
*/

#if defined(XP_WIN) && defined(ACCESSIBILITY)

// So that we don't include a bunch of other Windows junk.
# if !defined(COM_NO_WINDOWS_H)
# define COM_NO_WINDOWS_H
# endif // !defined(COM_NO_WINDOWS_H)

// COM headers pull in MSXML which conflicts with our own XMLDocument class.
// This define excludes those conflicting definitions.
# if !defined(__XMLDocument_FWD_DEFINED__)
# define __XMLDocument_FWD_DEFINED__
# endif // !defined(__XMLDocument_FWD_DEFINED__)

# include <combaseapi.h>

# include "mozilla/a11y/COMPtrTypes.h"

// This define in rpcndr.h messes up our code, so we must undefine it after
// COMPtrTypes.h has been included.
# if defined(small)
# undef small
# endif // defined(small)

#else

namespace mozilla {
namespace a11y {

typedef uint32_t IAccessibleHolder;
typedef uint32_t IDispatchHolder;
typedef uint32_t IHandlerControlHolder;

} // namespace a11y
} // namespace mozilla

#endif // defined(XP_WIN) && defined(ACCESSIBILITY)

#if defined(MOZ_WIDGET_COCOA)
# if defined(ACCESSIBILITY)
# include "mozilla/a11y/PlatformExtTypes.h"
Expand Down
75 changes: 0 additions & 75 deletions accessible/ipc/win/COMPtrTypes.cpp

This file was deleted.

78 changes: 0 additions & 78 deletions accessible/ipc/win/COMPtrTypes.h

This file was deleted.

9 changes: 0 additions & 9 deletions accessible/ipc/win/DocAccessibleChild.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,13 @@
#include "DocAccessibleChild.h"

#include "LocalAccessible-inl.h"
#include "mozilla/a11y/PlatformChild.h"
#include "mozilla/ClearOnShutdown.h"

namespace mozilla {
namespace a11y {

static StaticAutoPtr<PlatformChild> sPlatformChild;

DocAccessibleChild::DocAccessibleChild(DocAccessible* aDoc, IProtocol* aManager)
: DocAccessibleChildBase(aDoc) {
MOZ_COUNT_CTOR_INHERITED(DocAccessibleChild, DocAccessibleChildBase);
if (!sPlatformChild) {
sPlatformChild = new PlatformChild();
ClearOnShutdown(&sPlatformChild, ShutdownPhase::XPCOMShutdown);
}

SetManager(aManager);
}

Expand Down
1 change: 1 addition & 0 deletions accessible/ipc/win/HandlerProvider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include "Accessible2_3.h"
#include "AccessibleApplication.h"
#include "AccessibleDocument.h"
#include "AccessibleDocument_i.c"
#include "AccessibleEditableText.h"
#include "AccessibleImage.h"
#include "AccessibleRelation.h"
Expand Down
87 changes: 0 additions & 87 deletions accessible/ipc/win/PlatformChild.cpp

This file was deleted.

39 changes: 0 additions & 39 deletions accessible/ipc/win/PlatformChild.h

This file was deleted.

4 changes: 0 additions & 4 deletions accessible/ipc/win/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,15 @@ if CONFIG["ACCESSIBILITY"]:
IPDL_SOURCES += ["PDocAccessible.ipdl"]

EXPORTS.mozilla.a11y += [
"COMPtrTypes.h",
"DocAccessibleChild.h",
"HandlerProvider.h",
"PlatformChild.h",
"RemoteAccessible.h",
]

SOURCES += [
"!./handler/HandlerData_c.c",
"COMPtrTypes.cpp",
"DocAccessibleChild.cpp",
"HandlerProvider.cpp",
"PlatformChild.cpp",
]

# Give some symbols a unique name in each translation unit, to avoid
Expand Down
1 change: 1 addition & 0 deletions accessible/windows/ia2/ia2AccessibleHypertext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "ia2AccessibleHypertext.h"

#include "AccessibleHypertext_i.c"
#include "AccessibleHypertext2_i.c"

#include "mozilla/a11y/HyperTextAccessibleBase.h"

Expand Down
Loading

0 comments on commit 13afc4e

Please sign in to comment.