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 1168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1194 } | 1195 } |
1195 | 1196 |
1196 if (data.action == ui::AX_ACTION_FOCUS) { | 1197 if (data.action == ui::AX_ACTION_FOCUS) { |
1197 manager_->SetFocus(*this); | 1198 manager_->SetFocus(*this); |
1198 return true; | 1199 return true; |
1199 } | 1200 } |
1200 | 1201 |
1201 return false; | 1202 return false; |
1202 } | 1203 } |
1203 | 1204 |
| 1205 bool BrowserAccessibility::ShouldIgnoreHoveredStateForTesting() { |
| 1206 BrowserAccessibilityStateImpl* accessibility_state = |
| 1207 BrowserAccessibilityStateImpl::GetInstance(); |
| 1208 return accessibility_state->disable_hot_tracking_for_testing(); |
| 1209 } |
| 1210 |
1204 } // namespace content | 1211 } // namespace content |
OLD | NEW |