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/renderer/accessibility/render_accessibility_impl.h" | 5 #include "content/renderer/accessibility/render_accessibility_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <queue> | 10 #include <queue> |
11 | 11 |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/location.h" | 13 #include "base/location.h" |
| 14 #include "base/memory/ptr_util.h" |
14 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
15 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
16 #include "base/threading/thread_task_runner_handle.h" | 17 #include "base/threading/thread_task_runner_handle.h" |
17 #include "build/build_config.h" | 18 #include "build/build_config.h" |
18 #include "content/common/accessibility_messages.h" | 19 #include "content/common/accessibility_messages.h" |
19 #include "content/renderer/accessibility/blink_ax_enum_conversion.h" | 20 #include "content/renderer/accessibility/blink_ax_enum_conversion.h" |
20 #include "content/renderer/render_frame_impl.h" | 21 #include "content/renderer/render_frame_impl.h" |
21 #include "content/renderer/render_view_impl.h" | 22 #include "content/renderer/render_view_impl.h" |
22 #include "third_party/WebKit/public/platform/WebFloatRect.h" | 23 #include "third_party/WebKit/public/platform/WebFloatRect.h" |
23 #include "third_party/WebKit/public/web/WebAXObject.h" | 24 #include "third_party/WebKit/public/web/WebAXObject.h" |
(...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
661 | 662 |
662 const WebDocument& document = GetMainDocument(); | 663 const WebDocument& document = GetMainDocument(); |
663 if (document.isNull()) | 664 if (document.isNull()) |
664 return; | 665 return; |
665 | 666 |
666 document.accessibilityObject().scrollToMakeVisibleWithSubFocus( | 667 document.accessibilityObject().scrollToMakeVisibleWithSubFocus( |
667 WebRect(bounds.x(), bounds.y(), bounds.width(), bounds.height())); | 668 WebRect(bounds.x(), bounds.y(), bounds.width(), bounds.height())); |
668 } | 669 } |
669 | 670 |
670 } // namespace content | 671 } // namespace content |
OLD | NEW |