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

Unified Diff: Source/modules/accessibility/InspectorTypeBuilderHelper.h

Issue 1076453004: Show reasons why nodes are ignored in accessibility sidebar (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add a catch-all return to ignoredReasonName Created 5 years, 8 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
Index: Source/modules/accessibility/InspectorTypeBuilderHelper.h
diff --git a/Source/modules/accessibility/InspectorTypeBuilderHelper.h b/Source/modules/accessibility/InspectorTypeBuilderHelper.h
new file mode 100644
index 0000000000000000000000000000000000000000..0168089b7774fc0c09f0c30858b7645a10bd358e
--- /dev/null
+++ b/Source/modules/accessibility/InspectorTypeBuilderHelper.h
@@ -0,0 +1,41 @@
+// Copyright 2015 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 InspectorTypeBuilderHelper_h
+#define InspectorTypeBuilderHelper_h
+
+#include "core/InspectorTypeBuilder.h"
+#include "modules/ModulesExport.h"
+#include "modules/accessibility/AXObject.h"
+#include "modules/accessibility/AXObjectCacheImpl.h"
+
+namespace blink {
+
+using TypeBuilder::Accessibility::AXGlobalStates;
+using TypeBuilder::Accessibility::AXLiveRegionAttributes;
+using TypeBuilder::Accessibility::AXProperty;
+using TypeBuilder::Accessibility::AXValueType;
+using TypeBuilder::Accessibility::AXRelationshipAttributes;
+using TypeBuilder::Accessibility::AXValue;
+using TypeBuilder::Accessibility::AXWidgetAttributes;
+using TypeBuilder::Accessibility::AXWidgetStates;
+
+PassRefPtr<AXProperty> createProperty(String name, PassRefPtr<AXValue>);
+PassRefPtr<AXProperty> createProperty(AXGlobalStates::Enum name, PassRefPtr<AXValue>);
+PassRefPtr<AXProperty> createProperty(AXLiveRegionAttributes::Enum name, PassRefPtr<AXValue>);
+PassRefPtr<AXProperty> createProperty(AXRelationshipAttributes::Enum name, PassRefPtr<AXValue>);
+PassRefPtr<AXProperty> createProperty(AXWidgetAttributes::Enum name, PassRefPtr<AXValue>);
+PassRefPtr<AXProperty> createProperty(AXWidgetStates::Enum name, PassRefPtr<AXValue>);
+PassRefPtr<AXProperty> createProperty(IgnoredReason);
+
+PassRefPtr<AXValue> createValue(String value, AXValueType::Enum = AXValueType::String);
+PassRefPtr<AXValue> createValue(int value, AXValueType::Enum = AXValueType::Integer);
+PassRefPtr<AXValue> createValue(float value, AXValueType::Enum = AXValueType::Number);
+PassRefPtr<AXValue> createBooleanValue(bool value, AXValueType::Enum = AXValueType::Boolean);
+PassRefPtr<AXValue> createRelatedNodeValue(const AXObject*);
+PassRefPtr<AXValue> createRelatedNodeListValue(AXObject::AccessibilityChildrenVector);
+
+} // namespace blink
+
+#endif // InspectorAccessibilityAgent_h

Powered by Google App Engine
This is Rietveld 408576698