blob: b7c41a10e90b04daf97f8d931f31f04c2acd0520 [file] [log] [blame]
// 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.
#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);
// Convert a Blink WebAXTextDirection to an AXTextDirection defined in
// ui/accessibility.
ui::AXTextDirection AXTextDirectionFromBlink(
blink::WebAXTextDirection text_direction);
} // namespace content