Flutter Engine
The Flutter Engine
third_party
accessibility
ax
ax_action_handler_base.cc
Go to the documentation of this file.
1
// Copyright 2020 The Chromium Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#include "
ax_action_handler_base.h
"
6
7
#include "
ax_tree_id_registry.h
"
8
#include "
base/logging.h
"
9
10
namespace
ui
{
11
12
bool
AXActionHandlerBase::RequiresPerformActionPointInPixels
()
const
{
13
return
false
;
14
}
15
16
AXActionHandlerBase::AXActionHandlerBase
()
17
:
AXActionHandlerBase
(
ui
::
AXTreeIDUnknown
()) {}
18
19
AXActionHandlerBase::AXActionHandlerBase
(
const
AXTreeID
& ax_tree_id)
20
: tree_id_(ax_tree_id) {}
21
22
AXActionHandlerBase::~AXActionHandlerBase
() {
23
AXTreeIDRegistry::GetInstance
().
RemoveAXTreeID
(tree_id_);
24
}
25
26
void
AXActionHandlerBase::SetAXTreeID
(
AXTreeID
new_ax_tree_id) {
27
BASE_DCHECK
(new_ax_tree_id !=
ui::AXTreeIDUnknown
());
28
AXTreeIDRegistry::GetInstance
().
RemoveAXTreeID
(tree_id_);
29
tree_id_ = new_ax_tree_id;
30
AXTreeIDRegistry::GetInstance
().SetAXTreeID(tree_id_,
this
);
31
}
32
33
}
// namespace ui
ax_action_handler_base.h
ax_tree_id_registry.h
ui::AXActionHandlerBase
Definition:
ax_action_handler_base.h:23
ui::AXActionHandlerBase::SetAXTreeID
void SetAXTreeID(AXTreeID new_ax_tree_id)
Definition:
ax_action_handler_base.cc:26
ui::AXActionHandlerBase::AXActionHandlerBase
AXActionHandlerBase()
Definition:
ax_action_handler_base.cc:16
ui::AXActionHandlerBase::~AXActionHandlerBase
virtual ~AXActionHandlerBase()
Definition:
ax_action_handler_base.cc:22
ui::AXActionHandlerBase::RequiresPerformActionPointInPixels
virtual bool RequiresPerformActionPointInPixels() const
Definition:
ax_action_handler_base.cc:12
ui::AXTreeIDRegistry::RemoveAXTreeID
void RemoveAXTreeID(AXTreeID ax_tree_id)
Definition:
ax_tree_id_registry.cc:70
ui::AXTreeIDRegistry::GetInstance
static AXTreeIDRegistry & GetInstance()
Definition:
ax_tree_id_registry.cc:13
ui::AXTreeID
Definition:
ax_tree_id.h:18
ui
Definition:
window_binding_handler.h:18
ui::AXTreeIDUnknown
const AXTreeID & AXTreeIDUnknown()
Definition:
ax_tree_id.cc:103
logging.h
BASE_DCHECK
#define BASE_DCHECK(condition)
Definition:
logging.h:63
Generated on Sun Jun 23 2024 21:55:19 for Flutter Engine by
1.9.4