| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 // tree of nodes. | 75 // tree of nodes. |
| 76 void UpdateBrowserTree(const webkit_glue::WebAccessibility& renderer_node); | 76 void UpdateBrowserTree(const webkit_glue::WebAccessibility& renderer_node); |
| 77 | 77 |
| 78 // Clear the given node and recursively delete all of its descendants | 78 // Clear the given node and recursively delete all of its descendants |
| 79 // from the browser tree. (Does not delete |browser_node|). | 79 // from the browser tree. (Does not delete |browser_node|). |
| 80 void ClearBrowserTreeNode(BrowserTreeNode* browser_node); | 80 void ClearBrowserTreeNode(BrowserTreeNode* browser_node); |
| 81 | 81 |
| 82 // Handlers for messages from the browser to the renderer. | 82 // Handlers for messages from the browser to the renderer. |
| 83 void OnAccessibilityDoDefaultAction(int acc_obj_id); | 83 void OnAccessibilityDoDefaultAction(int acc_obj_id); |
| 84 void OnAccessibilityNotificationsAck(); | 84 void OnAccessibilityNotificationsAck(); |
| 85 void OnChangeScrollPosition(int acc_obj_id, int scroll_x, int scroll_y); |
| 85 void OnEnableAccessibility(); | 86 void OnEnableAccessibility(); |
| 86 void OnSetAccessibilityFocus(int acc_obj_id); | 87 void OnSetAccessibilityFocus(int acc_obj_id); |
| 87 | 88 |
| 89 void OnSetTextSelection(int acc_obj_id, int start_offset, int end_offset); |
| 90 |
| 88 // Whether or not this notification typically needs to send | 91 // Whether or not this notification typically needs to send |
| 89 // updates to its children, too. | 92 // updates to its children, too. |
| 90 bool ShouldIncludeChildren(const Notification& notification); | 93 bool ShouldIncludeChildren(const Notification& notification); |
| 91 | 94 |
| 92 // Returns the main top-level document for this page, or NULL if there's | 95 // Returns the main top-level document for this page, or NULL if there's |
| 93 // no view or frame. | 96 // no view or frame. |
| 94 WebKit::WebDocument GetMainDocument(); | 97 WebKit::WebDocument GetMainDocument(); |
| 95 | 98 |
| 96 // So we can queue up tasks to be executed later. | 99 // So we can queue up tasks to be executed later. |
| 97 ScopedRunnableMethodFactory<RendererAccessibility> method_factory_; | 100 ScopedRunnableMethodFactory<RendererAccessibility> method_factory_; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 117 // True if verbose logging of accessibility events is on. | 120 // True if verbose logging of accessibility events is on. |
| 118 bool logging_; | 121 bool logging_; |
| 119 | 122 |
| 120 // True if we've sent a load complete notification for this page already. | 123 // True if we've sent a load complete notification for this page already. |
| 121 bool sent_load_complete_; | 124 bool sent_load_complete_; |
| 122 | 125 |
| 123 DISALLOW_COPY_AND_ASSIGN(RendererAccessibility); | 126 DISALLOW_COPY_AND_ASSIGN(RendererAccessibility); |
| 124 }; | 127 }; |
| 125 | 128 |
| 126 #endif // CONTENT_RENDERER_RENDERER_ACCESSIBILITY_H_ | 129 #endif // CONTENT_RENDERER_RENDERER_ACCESSIBILITY_H_ |
| OLD | NEW |