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

Unified Diff: third_party/WebKit/Source/core/dom/AccessibleNode.h

Issue 2796553002: Revert of Initial skeleton of Accessibility Object Model Phase 1 (Closed)
Patch Set: Created 3 years, 9 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: third_party/WebKit/Source/core/dom/AccessibleNode.h
diff --git a/third_party/WebKit/Source/core/dom/AccessibleNode.h b/third_party/WebKit/Source/core/dom/AccessibleNode.h
deleted file mode 100644
index a423caeb6214ece94a00f7884157f918ae8a0958..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/dom/AccessibleNode.h
+++ /dev/null
@@ -1,58 +0,0 @@
-// 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.
-
-#ifndef AccessibleNode_h
-#define AccessibleNode_h
-
-#include "bindings/core/v8/ScriptWrappable.h"
-#include "core/CoreExport.h"
-#include "wtf/HashMap.h"
-#include "wtf/text/AtomicString.h"
-#include "wtf/text/AtomicStringHash.h"
-
-namespace blink {
-
-class Element;
-
-// All of the properties of AccessibleNode that have type "string".
-// TODO(dmazzoni): Add similar enums for all of the properties with
-// type bool, float, reference, and reference list.
-enum class AOMStringProperty { kRole, kLabel };
-
-// Accessibility Object Model node
-// Explainer: https://github.com/WICG/aom/blob/master/explainer.md
-// Spec: https://wicg.github.io/aom/spec/
-class CORE_EXPORT AccessibleNode
- : public GarbageCollectedFinalized<AccessibleNode>,
- public ScriptWrappable {
- DEFINE_WRAPPERTYPEINFO();
-
- public:
- explicit AccessibleNode(Element*);
- virtual ~AccessibleNode();
-
- // Returns the given string property if the Element has an AccessibleNode,
- // otherwise returns the equivalent ARIA attribute.
- static const AtomicString& getProperty(Element*, AOMStringProperty);
-
- AtomicString role() const;
- void setRole(const AtomicString&);
-
- AtomicString label() const;
- void setLabel(const AtomicString&);
-
- DECLARE_VIRTUAL_TRACE();
-
- private:
- void setStringProperty(AOMStringProperty, const AtomicString&);
-
- Vector<std::pair<AOMStringProperty, AtomicString>> m_stringProperties;
-
- // This object's owner Element.
- Member<Element> m_element;
-};
-
-} // namespace blink
-
-#endif // AccessibleNode_h
« no previous file with comments | « third_party/WebKit/Source/core/core_idl_files.gni ('k') | third_party/WebKit/Source/core/dom/AccessibleNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698