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 "content/browser/accessibility/browser_accessibility.h" | 5 #include "content/browser/accessibility/browser_accessibility.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <iterator> | 10 #include <iterator> |
11 | 11 |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
14 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
15 #include "content/browser/accessibility/browser_accessibility_manager.h" | 15 #include "content/browser/accessibility/browser_accessibility_manager.h" |
| 16 #include "content/browser/accessibility/browser_accessibility_state_impl.h" |
16 #include "content/common/accessibility_messages.h" | 17 #include "content/common/accessibility_messages.h" |
17 #include "ui/accessibility/ax_role_properties.h" | 18 #include "ui/accessibility/ax_role_properties.h" |
18 #include "ui/accessibility/ax_text_utils.h" | 19 #include "ui/accessibility/ax_text_utils.h" |
19 #include "ui/accessibility/platform/ax_platform_unique_id.h" | 20 #include "ui/accessibility/platform/ax_platform_unique_id.h" |
20 #include "ui/gfx/geometry/rect_conversions.h" | 21 #include "ui/gfx/geometry/rect_conversions.h" |
21 #include "ui/gfx/geometry/rect_f.h" | 22 #include "ui/gfx/geometry/rect_f.h" |
22 | 23 |
23 namespace content { | 24 namespace content { |
24 | 25 |
25 namespace { | 26 namespace { |
(...skipping 1133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1159 } | 1160 } |
1160 | 1161 |
1161 if (data.action == ui::AX_ACTION_FOCUS) { | 1162 if (data.action == ui::AX_ACTION_FOCUS) { |
1162 manager_->SetFocus(*this); | 1163 manager_->SetFocus(*this); |
1163 return true; | 1164 return true; |
1164 } | 1165 } |
1165 | 1166 |
1166 return false; | 1167 return false; |
1167 } | 1168 } |
1168 | 1169 |
| 1170 bool BrowserAccessibility::ShouldIgnoreHoveredStateForTesting() { |
| 1171 BrowserAccessibilityStateImpl* accessibility_state = |
| 1172 BrowserAccessibilityStateImpl::GetInstance(); |
| 1173 return accessibility_state->disable_hot_tracking_for_testing(); |
| 1174 } |
| 1175 |
1169 } // namespace content | 1176 } // namespace content |
OLD | NEW |