1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- // Copyright 2019 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 "ui/accessibility/null_ax_action_target.h"
- namespace ui {
- AXActionTarget::Type NullAXActionTarget::GetType() const {
- return AXActionTarget::Type::kNull;
- }
- bool NullAXActionTarget::PerformAction(
- const ui::AXActionData& action_data) const {
- return false;
- }
- gfx::Rect NullAXActionTarget::GetRelativeBounds() const {
- return gfx::Rect();
- }
- gfx::Point NullAXActionTarget::GetScrollOffset() const {
- return gfx::Point();
- }
- gfx::Point NullAXActionTarget::MinimumScrollOffset() const {
- return gfx::Point();
- }
- gfx::Point NullAXActionTarget::MaximumScrollOffset() const {
- return gfx::Point();
- }
- void NullAXActionTarget::SetScrollOffset(const gfx::Point& point) const {}
- bool NullAXActionTarget::SetSelected(bool selected) const {
- return false;
- }
- bool NullAXActionTarget::SetSelection(const AXActionTarget* anchor_object,
- int anchor_offset,
- const AXActionTarget* focus_object,
- int focus_offset) const {
- return false;
- }
- bool NullAXActionTarget::ScrollToMakeVisible() const {
- return false;
- }
- bool NullAXActionTarget::ScrollToMakeVisibleWithSubFocus(
- const gfx::Rect& rect,
- ax::mojom::ScrollAlignment horizontal_scroll_alignment,
- ax::mojom::ScrollAlignment vertical_scroll_alignment,
- ax::mojom::ScrollBehavior scroll_behavior) const {
- return false;
- }
- } // namespace ui
|