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

Unified Diff: ui/accessibility/ax_node_data.h

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_node.cc ('k') | ui/accessibility/ax_node_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/accessibility/ax_node_data.h
diff --git a/ui/accessibility/ax_node_data.h b/ui/accessibility/ax_node_data.h
deleted file mode 100644
index b6a1310ca1e5df0de29eb54a23daf886d52887c7..0000000000000000000000000000000000000000
--- a/ui/accessibility/ax_node_data.h
+++ /dev/null
@@ -1,62 +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.
-
-#ifndef UI_ACCESSIBILITY_AX_NODE_DATA_H_
-#define UI_ACCESSIBILITY_AX_NODE_DATA_H_
-
-#include <map>
-#include <string>
-#include <vector>
-
-#include "base/strings/string16.h"
-#include "base/strings/string_split.h"
-#include "ui/accessibility/ax_enums.h"
-#include "ui/accessibility/ax_export.h"
-#include "ui/gfx/rect.h"
-
-namespace ui {
-
-// A compact representation of the accessibility information for a
-// single web object, in a form that can be serialized and sent from
-// one process to another.
-struct AX_EXPORT AXNodeData {
- AXNodeData();
- virtual ~AXNodeData();
-
- void AddStringAttribute(AXStringAttribute attribute,
- const std::string& value);
- void AddIntAttribute(AXIntAttribute attribute, int value);
- void AddFloatAttribute(AXFloatAttribute attribute, float value);
- void AddBoolAttribute(AXBoolAttribute attribute, bool value);
- void AddIntListAttribute(AXIntListAttribute attribute,
- const std::vector<int32>& value);
-
- // Convenience functions, mainly for writing unit tests.
- // Equivalent to AddStringAttribute(ATTR_NAME, name).
- void SetName(std::string name);
- // Equivalent to AddStringAttribute(ATTR_VALUE, value).
- void SetValue(std::string value);
-
- // Return a string representation of this data, for debugging.
- std::string ToString() const;
-
- // This is a simple serializable struct. All member variables should be
- // public and copyable.
- int32 id;
- AXRole role;
- uint32 state;
- gfx::Rect location;
- std::vector<std::pair<AXStringAttribute, std::string> > string_attributes;
- std::vector<std::pair<AXIntAttribute, int32> > int_attributes;
- std::vector<std::pair<AXFloatAttribute, float> > float_attributes;
- std::vector<std::pair<AXBoolAttribute, bool> > bool_attributes;
- std::vector<std::pair<AXIntListAttribute, std::vector<int32> > >
- intlist_attributes;
- base::StringPairs html_attributes;
- std::vector<int32> child_ids;
-};
-
-} // namespace ui
-
-#endif // UI_ACCESSIBILITY_AX_NODE_DATA_H_
« no previous file with comments | « ui/accessibility/ax_node.cc ('k') | ui/accessibility/ax_node_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698