зеркало из https://github.com/mozilla/gecko-dev.git
59 строки
1.3 KiB
Plaintext
59 строки
1.3 KiB
Plaintext
/* -*- 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;
|
|
uint32_t Interfaces;
|
|
};
|
|
|
|
struct ShowEventData
|
|
{
|
|
uint64_t ID;
|
|
uint32_t Idx;
|
|
AccessibleData[] NewTree;
|
|
};
|
|
|
|
struct Attribute
|
|
{
|
|
nsCString Name;
|
|
nsString Value;
|
|
};
|
|
|
|
prio(normal upto high) sync protocol PDocAccessible
|
|
{
|
|
manager PContent;
|
|
|
|
parent:
|
|
__delete__();
|
|
|
|
/*
|
|
* Notify the parent process the document in the child process is firing an
|
|
* event.
|
|
*/
|
|
Event(uint64_t aID, uint32_t type);
|
|
ShowEvent(ShowEventData data);
|
|
HideEvent(uint64_t aRootID);
|
|
|
|
child:
|
|
prio(high) sync State(uint64_t aID) returns(uint64_t states);
|
|
prio(high) sync Name(uint64_t aID) returns(nsString name);
|
|
prio(high) sync Description(uint64_t aID) returns(nsString desc);
|
|
prio(high) sync Attributes(uint64_t aID) returns(Attribute[] attributes);
|
|
prio(high) sync TextSubstring(uint64_t aID, int32_t aStartOffset, int32_t
|
|
aEndOffset) returns(nsString aText);
|
|
};
|
|
|
|
}
|
|
}
|