OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <stddef.h> | 5 #include <stddef.h> |
6 #include <stdint.h> | 6 #include <stdint.h> |
7 | 7 |
8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 int acc_focus_obj_id, | 81 int acc_focus_obj_id, |
82 int end_offset) override {} | 82 int end_offset) override {} |
83 void AccessibilitySetValue(int acc_obj_id, const base::string16& value) | 83 void AccessibilitySetValue(int acc_obj_id, const base::string16& value) |
84 override {} | 84 override {} |
85 bool AccessibilityViewHasFocus() const override { return false; } | 85 bool AccessibilityViewHasFocus() const override { return false; } |
86 gfx::Rect AccessibilityGetViewBounds() const override { return gfx::Rect(); } | 86 gfx::Rect AccessibilityGetViewBounds() const override { return gfx::Rect(); } |
87 gfx::Point AccessibilityOriginInScreen( | 87 gfx::Point AccessibilityOriginInScreen( |
88 const gfx::Rect& bounds) const override { | 88 const gfx::Rect& bounds) const override { |
89 return gfx::Point(); | 89 return gfx::Point(); |
90 } | 90 } |
| 91 gfx::Rect AccessibilityTransformToRootCoordSpace( |
| 92 const gfx::Rect& bounds) override { return gfx::Rect(); } |
| 93 SiteInstance* AccessibilityGetSiteInstance() override { return nullptr; } |
91 void AccessibilityHitTest(const gfx::Point& point) override {} | 94 void AccessibilityHitTest(const gfx::Point& point) override {} |
92 void AccessibilitySetAccessibilityFocus(int acc_obj_id) override {} | 95 void AccessibilitySetAccessibilityFocus(int acc_obj_id) override {} |
93 void AccessibilityFatalError() override { got_fatal_error_ = true; } | 96 void AccessibilityFatalError() override { got_fatal_error_ = true; } |
94 gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() override { | 97 gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() override { |
95 return gfx::kNullAcceleratedWidget; | 98 return gfx::kNullAcceleratedWidget; |
96 } | 99 } |
97 gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible() override { | 100 gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible() override { |
98 return nullptr; | 101 return nullptr; |
99 } | 102 } |
100 | 103 |
(...skipping 1375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1476 events2[0].event_type = ui::AX_EVENT_NONE; | 1479 events2[0].event_type = ui::AX_EVENT_NONE; |
1477 manager->OnAccessibilityEvents(events2); | 1480 manager->OnAccessibilityEvents(events2); |
1478 | 1481 |
1479 // Make sure that the focused node was updated to the new root and | 1482 // Make sure that the focused node was updated to the new root and |
1480 // that this doesn't crash. | 1483 // that this doesn't crash. |
1481 ASSERT_EQ(3, manager->GetRoot()->GetId()); | 1484 ASSERT_EQ(3, manager->GetRoot()->GetId()); |
1482 ASSERT_EQ(3, manager->GetFocus()->GetId()); | 1485 ASSERT_EQ(3, manager->GetFocus()->GetId()); |
1483 } | 1486 } |
1484 | 1487 |
1485 } // namespace content | 1488 } // namespace content |
OLD | NEW |