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

Unified Diff: content/renderer/accessibility/blink_ax_enum_conversion.h

Issue 116293005: Refactor content/ to use ui::AXNodeData instead of blink. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update content/DEPS instead of subdirs Created 6 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
Index: content/renderer/accessibility/blink_ax_enum_conversion.h
diff --git a/content/renderer/accessibility/blink_ax_enum_conversion.h b/content/renderer/accessibility/blink_ax_enum_conversion.h
new file mode 100644
index 0000000000000000000000000000000000000000..78a739ce8e76e9bfef8bc016e74243fa5db77f4d
--- /dev/null
+++ b/content/renderer/accessibility/blink_ax_enum_conversion.h
@@ -0,0 +1,27 @@
+// Copyright (c) 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 CONTENT_RENDERER_ACCESSIBILITY_BLINK_AX_ENUM_CONVERSION_H_
+#define CONTENT_RENDERER_ACCESSIBILITY_BLINK_AX_ENUM_CONVERSION_H_
+
+#include "third_party/WebKit/public/web/WebAXObject.h"
+#include "ui/accessibility/ax_enums.h"
+
+namespace content {
+
+// Convert a Blink WebAXRole to an AXRole defined in ui/accessibility.
+ui::AXRole AXRoleFromBlink(blink::WebAXRole role);
+
+// Convert a Blink WebAXEvent to an AXEvent defined in ui/accessibility.
+ui::AXEvent AXEventFromBlink(blink::WebAXEvent event);
+
+// Provides a conversion between the WebAXObject state
+// accessors and a state bitmask stored in an AXNodeData.
+// (Note that some rare states are sent as boolean attributes
+// in AXNodeData instead.)
+uint32 AXStateFromBlink(const blink::WebAXObject& o);
+
+} // namespace content
+
+#endif // CONTENT_RENDERER_ACCESSIBILITY_BLINK_AX_ENUM_CONVERSION_H_

Powered by Google App Engine
This is Rietveld 408576698