| Index: ui/accessibility/ax_host_delegate.cc
|
| diff --git a/ui/accessibility/ax_host_delegate.cc b/ui/accessibility/ax_host_delegate.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..59c1a77839928a1354834b408497aa2aba43e21e
|
| --- /dev/null
|
| +++ b/ui/accessibility/ax_host_delegate.cc
|
| @@ -0,0 +1,18 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "ui/accessibility/ax_host_delegate.h"
|
| +
|
| +#include "ui/accessibility/ax_tree_id_registry.h"
|
| +
|
| +namespace ui {
|
| +
|
| +AXHostDelegate::AXHostDelegate()
|
| + : tree_id_(AXTreeIDRegistry::GetInstance()->GetOrCreateAXTreeID(this)) {}
|
| +
|
| +AXHostDelegate::~AXHostDelegate() {
|
| + AXTreeIDRegistry::GetInstance()->RemoveAXTreeID(tree_id_);
|
| +}
|
| +
|
| +} // namespace ui
|
|
|