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" | |
17 #include "content/common/accessibility_messages.h" | 16 #include "content/common/accessibility_messages.h" |
18 #include "ui/accessibility/ax_role_properties.h" | 17 #include "ui/accessibility/ax_role_properties.h" |
19 #include "ui/accessibility/ax_text_utils.h" | 18 #include "ui/accessibility/ax_text_utils.h" |
20 #include "ui/accessibility/platform/ax_platform_unique_id.h" | 19 #include "ui/accessibility/platform/ax_platform_unique_id.h" |
21 #include "ui/gfx/geometry/rect_conversions.h" | 20 #include "ui/gfx/geometry/rect_conversions.h" |
22 #include "ui/gfx/geometry/rect_f.h" | 21 #include "ui/gfx/geometry/rect_f.h" |
23 | 22 |
24 namespace content { | 23 namespace content { |
25 | 24 |
26 namespace { | 25 namespace { |
(...skipping 1168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1195 } | 1194 } |
1196 | 1195 |
1197 if (data.action == ui::AX_ACTION_FOCUS) { | 1196 if (data.action == ui::AX_ACTION_FOCUS) { |
1198 manager_->SetFocus(*this); | 1197 manager_->SetFocus(*this); |
1199 return true; | 1198 return true; |
1200 } | 1199 } |
1201 | 1200 |
1202 return false; | 1201 return false; |
1203 } | 1202 } |
1204 | 1203 |
1205 bool BrowserAccessibility::ShouldIgnoreHoveredStateForTesting() { | |
1206 BrowserAccessibilityStateImpl* accessibility_state = | |
1207 BrowserAccessibilityStateImpl::GetInstance(); | |
1208 return accessibility_state->disable_hot_tracking_for_testing(); | |
1209 } | |
1210 | |
1211 } // namespace content | 1204 } // namespace content |
OLD | NEW |