2014-03-07 13:35:19 -08:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=2 et sw=2 tw=80: */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
include protocol PContent;
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace a11y {
|
|
|
|
|
|
|
|
struct AccessibleData
|
|
|
|
{
|
|
|
|
uint64_t ID;
|
|
|
|
uint32_t Role;
|
|
|
|
uint32_t ChildrenCount;
|
2015-01-09 12:01:39 -08:00
|
|
|
uint32_t Interfaces;
|
2014-03-07 13:35:19 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
struct ShowEventData
|
|
|
|
{
|
|
|
|
uint64_t ID;
|
|
|
|
uint32_t Idx;
|
|
|
|
AccessibleData[] NewTree;
|
|
|
|
};
|
|
|
|
|
2014-10-24 02:29:48 -07:00
|
|
|
struct Attribute
|
|
|
|
{
|
|
|
|
nsCString Name;
|
|
|
|
nsString Value;
|
|
|
|
};
|
|
|
|
|
2015-01-29 08:58:34 -08:00
|
|
|
struct RelationTargets
|
|
|
|
{
|
|
|
|
uint32_t Type;
|
|
|
|
uint64_t[] Targets;
|
|
|
|
};
|
|
|
|
|
2014-09-23 01:35:33 -07:00
|
|
|
prio(normal upto high) sync protocol PDocAccessible
|
2014-03-07 13:35:19 -08:00
|
|
|
{
|
|
|
|
manager PContent;
|
|
|
|
|
|
|
|
parent:
|
|
|
|
__delete__();
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Notify the parent process the document in the child process is firing an
|
|
|
|
* event.
|
|
|
|
*/
|
2014-09-30 07:00:26 -07:00
|
|
|
Event(uint64_t aID, uint32_t type);
|
2014-03-07 13:35:19 -08:00
|
|
|
ShowEvent(ShowEventData data);
|
|
|
|
HideEvent(uint64_t aRootID);
|
2014-09-23 01:35:33 -07:00
|
|
|
|
|
|
|
child:
|
2015-02-12 12:56:13 -08:00
|
|
|
// Accessible
|
2014-09-23 01:35:33 -07:00
|
|
|
prio(high) sync State(uint64_t aID) returns(uint64_t states);
|
2014-09-23 02:53:03 -07:00
|
|
|
prio(high) sync Name(uint64_t aID) returns(nsString name);
|
2015-02-11 12:00:11 -08:00
|
|
|
prio(high) sync Value(uint64_t aID) returns(nsString value);
|
2014-10-23 20:21:44 -07:00
|
|
|
prio(high) sync Description(uint64_t aID) returns(nsString desc);
|
2014-10-24 02:29:48 -07:00
|
|
|
prio(high) sync Attributes(uint64_t aID) returns(Attribute[] attributes);
|
2015-01-29 08:58:34 -08:00
|
|
|
prio(high) sync RelationByType(uint64_t aID, uint32_t aRelationType)
|
|
|
|
returns(uint64_t[] targets);
|
|
|
|
prio(high) sync Relations(uint64_t aID) returns(RelationTargets[] relations);
|
2015-02-12 12:56:13 -08:00
|
|
|
|
|
|
|
// AccessibleText
|
|
|
|
|
|
|
|
// TextSubstring is getText in IDL.
|
2015-02-11 12:00:11 -08:00
|
|
|
prio(high) sync TextSubstring(uint64_t aID, int32_t aStartOffset, int32_t
|
|
|
|
aEndOffset) returns(nsString aText);
|
2015-02-17 11:35:40 -08:00
|
|
|
prio(high) sync GetTextAfterOffset(uint64_t aID, int32_t aOffset, int32_t aBoundaryType)
|
2015-02-12 12:56:13 -08:00
|
|
|
returns(nsString aText, int32_t aStartOffset, int32_t aEndOffset);
|
2015-02-17 11:35:40 -08:00
|
|
|
prio(high) sync GetTextAtOffset(uint64_t aID, int32_t aOffset, int32_t aBoundaryType)
|
2015-02-12 12:56:13 -08:00
|
|
|
returns(nsString aText, int32_t aStartOffset, int32_t aEndOffset);
|
2015-02-17 11:35:40 -08:00
|
|
|
prio(high) sync GetTextBeforeOffset(uint64_t aID, int32_t aOffset, int32_t aBoundaryType)
|
2015-02-12 12:56:13 -08:00
|
|
|
returns(nsString aText, int32_t aStartOffset, int32_t aEndOffset);
|
2014-03-07 13:35:19 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|