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 #ifndef CONTENT_RENDERER_RENDERER_ACCESSIBILITY_H_ | 5 #ifndef CONTENT_RENDERER_RENDERER_ACCESSIBILITY_H_ |
6 #define CONTENT_RENDERER_RENDERER_ACCESSIBILITY_H_ | 6 #define CONTENT_RENDERER_RENDERER_ACCESSIBILITY_H_ |
7 | 7 |
8 #include "content/common/accessibility_messages.h" | 8 #include "content/common/accessibility_messages.h" |
9 #include "content/public/renderer/render_view_observer.h" | 9 #include "content/public/renderer/render_view_observer.h" |
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAccessibilityNotif
ication.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAccessibilityNotif
ication.h" |
11 | 11 |
12 class RenderViewImpl; | |
13 | |
14 namespace WebKit { | 12 namespace WebKit { |
15 class WebAccessibilityObject; | 13 class WebAccessibilityObject; |
16 class WebDocument; | 14 class WebDocument; |
17 }; | 15 }; |
18 | 16 |
19 namespace content { | 17 namespace content { |
| 18 class RenderViewImpl; |
20 | 19 |
21 // The browser process implement native accessibility APIs, allowing | 20 // The browser process implement native accessibility APIs, allowing |
22 // assistive technology (e.g., screen readers, magnifiers) to access and | 21 // assistive technology (e.g., screen readers, magnifiers) to access and |
23 // control the web contents with high-level APIs. These APIs are also used | 22 // control the web contents with high-level APIs. These APIs are also used |
24 // by automation tools, and Windows 8 uses them to determine when the | 23 // by automation tools, and Windows 8 uses them to determine when the |
25 // on-screen keyboard should be shown. | 24 // on-screen keyboard should be shown. |
26 // | 25 // |
27 // An instance of this class (or rather, a subclass) belongs to RenderViewImpl. | 26 // An instance of this class (or rather, a subclass) belongs to RenderViewImpl. |
28 // Accessibility is initialized based on the AccessibilityMode of | 27 // Accessibility is initialized based on the AccessibilityMode of |
29 // RenderViewImpl; it lazily starts as Off or EditableTextOnly depending on | 28 // RenderViewImpl; it lazily starts as Off or EditableTextOnly depending on |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 74 |
76 // True if verbose logging of accessibility events is on. | 75 // True if verbose logging of accessibility events is on. |
77 bool logging_; | 76 bool logging_; |
78 | 77 |
79 DISALLOW_COPY_AND_ASSIGN(RendererAccessibility); | 78 DISALLOW_COPY_AND_ASSIGN(RendererAccessibility); |
80 }; | 79 }; |
81 | 80 |
82 } // namespace content | 81 } // namespace content |
83 | 82 |
84 #endif // CONTENT_RENDERER_RENDERER_ACCESSIBILITY_H_ | 83 #endif // CONTENT_RENDERER_RENDERER_ACCESSIBILITY_H_ |
OLD | NEW |