Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Unified Diff: ui/accessibility/ax_tree_update.cc

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/accessibility/ax_tree_update.h ('k') | ui/accessibility/ax_view_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/accessibility/ax_tree_update.cc
diff --git a/ui/accessibility/ax_tree_update.cc b/ui/accessibility/ax_tree_update.cc
deleted file mode 100644
index 8e9d019349f3cb8fa72f86204f5cd5d15bd4da3d..0000000000000000000000000000000000000000
--- a/ui/accessibility/ax_tree_update.cc
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright 2013 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_tree_update.h"
-
-#include "base/containers/hash_tables.h"
-#include "base/strings/string_number_conversions.h"
-
-namespace ui {
-
-AXTreeUpdate::AXTreeUpdate() : node_id_to_clear(0) {
-}
-
-AXTreeUpdate::~AXTreeUpdate() {
-}
-
-std::string AXTreeUpdate::ToString() const {
- std::string result;
- if (node_id_to_clear != 0) {
- result += "AXTreeUpdate: clear node " +
- base::IntToString(node_id_to_clear) + "\n";
- }
-
- // The challenge here is that we want to indent the nodes being updated
- // so that parent/child relationships are clear, but we don't have access
- // to the rest of the tree for context, so we have to try to show the
- // relative indentation of child nodes in this update relative to their
- // parents.
- base::hash_map<int32, int> id_to_indentation;
- for (size_t i = 0; i < nodes.size(); ++i) {
- int indent = id_to_indentation[nodes[i].id];
- result += std::string(2 * indent, ' ');
- result += nodes[i].ToString() + "\n";
- for (size_t j = 0; j < nodes[i].child_ids.size(); ++j)
- id_to_indentation[nodes[i].child_ids[j]] = indent + 1;
- }
-
- return result;
-}
-
-} // namespace ui
« no previous file with comments | « ui/accessibility/ax_tree_update.h ('k') | ui/accessibility/ax_view_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698