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/. */
8 #include "RemoteAccessible.h"
9 #include "DocAccessibleParent.h"
11 #import "MUIAccessible.h"
16 bool ShouldA11yBeEnabled() {
17 // XXX: Figure out proper a11y activation strategies in iOS.
21 void PlatformInit() {}
23 void PlatformShutdown() {}
25 void ProxyCreated(RemoteAccessible* aProxy) {
26 MUIAccessible* mozWrapper = [[MUIAccessible alloc] initWithAccessible:aProxy];
27 aProxy->SetWrapper(reinterpret_cast<uintptr_t>(mozWrapper));
30 void ProxyDestroyed(RemoteAccessible* aProxy) {
31 MUIAccessible* wrapper = GetNativeFromGeckoAccessible(aProxy);
34 aProxy->SetWrapper(0);
37 void PlatformEvent(Accessible*, uint32_t) {}
39 void PlatformStateChangeEvent(Accessible*, uint64_t, bool) {}
41 void PlatformFocusEvent(Accessible* aTarget,
42 const LayoutDeviceIntRect& aCaretRect) {}
44 void PlatformCaretMoveEvent(Accessible* aTarget, int32_t aOffset,
45 bool aIsSelectionCollapsed, int32_t aGranularity,
46 const LayoutDeviceIntRect& aCaretRect,
49 void PlatformTextChangeEvent(Accessible*, const nsAString&, int32_t, uint32_t,
52 void PlatformShowHideEvent(Accessible*, Accessible*, bool, bool) {}
54 void PlatformSelectionEvent(Accessible*, Accessible*, uint32_t) {}
57 } // namespace mozilla