Skip to content

Commit

Permalink
refactor: Fix accesskit_atspi_common::NodeWrapper methods visibility (
Browse files Browse the repository at this point in the history
  • Loading branch information
DataTriny authored Apr 30, 2024
1 parent 80139a7 commit e771ca3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions platforms/atspi-common/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ impl<'a> NodeWrapper<'a> {
}
}

pub fn name(&self) -> Option<String> {
pub(crate) fn name(&self) -> Option<String> {
match self {
Self::Node(node) => node.name(),
Self::DetachedNode(node) => node.name(),
Expand All @@ -58,11 +58,11 @@ impl<'a> NodeWrapper<'a> {
}
}

pub fn parent_id(&self) -> Option<NodeId> {
pub(crate) fn parent_id(&self) -> Option<NodeId> {
self.node_state().parent_id()
}

pub fn id(&self) -> NodeId {
pub(crate) fn id(&self) -> NodeId {
self.node_state().id()
}

Expand All @@ -84,7 +84,7 @@ impl<'a> NodeWrapper<'a> {
}
}

pub fn role(&self) -> AtspiRole {
pub(crate) fn role(&self) -> AtspiRole {
if self.node_state().has_role_description() {
return AtspiRole::Extended;
}
Expand Down Expand Up @@ -307,7 +307,7 @@ impl<'a> NodeWrapper<'a> {
}
}

pub fn state(&self, is_window_focused: bool) -> StateSet {
pub(crate) fn state(&self, is_window_focused: bool) -> StateSet {
let state = self.node_state();
let atspi_role = self.role();
let mut atspi_state = StateSet::empty();
Expand Down Expand Up @@ -391,7 +391,7 @@ impl<'a> NodeWrapper<'a> {
self.current_value().is_some()
}

pub fn interfaces(&self) -> InterfaceSet {
pub(crate) fn interfaces(&self) -> InterfaceSet {
let mut interfaces = InterfaceSet::new(Interface::Accessible);
if self.supports_action() {
interfaces.insert(Interface::Action);
Expand Down

0 comments on commit e771ca3

Please sign in to comment.