null_ax_action_target.cc 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. // Copyright 2019 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "ui/accessibility/null_ax_action_target.h"
  5. namespace ui {
  6. AXActionTarget::Type NullAXActionTarget::GetType() const {
  7. return AXActionTarget::Type::kNull;
  8. }
  9. bool NullAXActionTarget::PerformAction(
  10. const ui::AXActionData& action_data) const {
  11. return false;
  12. }
  13. gfx::Rect NullAXActionTarget::GetRelativeBounds() const {
  14. return gfx::Rect();
  15. }
  16. gfx::Point NullAXActionTarget::GetScrollOffset() const {
  17. return gfx::Point();
  18. }
  19. gfx::Point NullAXActionTarget::MinimumScrollOffset() const {
  20. return gfx::Point();
  21. }
  22. gfx::Point NullAXActionTarget::MaximumScrollOffset() const {
  23. return gfx::Point();
  24. }
  25. void NullAXActionTarget::SetScrollOffset(const gfx::Point& point) const {}
  26. bool NullAXActionTarget::SetSelected(bool selected) const {
  27. return false;
  28. }
  29. bool NullAXActionTarget::SetSelection(const AXActionTarget* anchor_object,
  30. int anchor_offset,
  31. const AXActionTarget* focus_object,
  32. int focus_offset) const {
  33. return false;
  34. }
  35. bool NullAXActionTarget::ScrollToMakeVisible() const {
  36. return false;
  37. }
  38. bool NullAXActionTarget::ScrollToMakeVisibleWithSubFocus(
  39. const gfx::Rect& rect,
  40. ax::mojom::ScrollAlignment horizontal_scroll_alignment,
  41. ax::mojom::ScrollAlignment vertical_scroll_alignment,
  42. ax::mojom::ScrollBehavior scroll_behavior) const {
  43. return false;
  44. }
  45. } // namespace ui