| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 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 "ui/accessibility/ax_host_delegate.h" |
| 6 |
| 7 #include "ui/accessibility/ax_tree_id_registry.h" |
| 8 |
| 9 namespace ui { |
| 10 |
| 11 AXHostDelegate::AXHostDelegate() |
| 12 : tree_id_(AXTreeIDRegistry::GetInstance()->GetOrCreateAXTreeID(this)) {} |
| 13 |
| 14 AXHostDelegate::AXHostDelegate(int32_t tree_id) : tree_id_(tree_id) { |
| 15 AXTreeIDRegistry::GetInstance()->SetDelegateForID(this, tree_id); |
| 16 } |
| 17 |
| 18 AXHostDelegate::~AXHostDelegate() { |
| 19 AXTreeIDRegistry::GetInstance()->RemoveAXTreeID(tree_id_); |
| 20 } |
| 21 |
| 22 } // namespace ui |
| OLD | NEW |