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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 int32 id; | 55 int32 id; |
56 | 56 |
57 // The accessibility notification type. | 57 // The accessibility notification type. |
58 WebKit::WebAccessibilityNotification type; | 58 WebKit::WebAccessibilityNotification type; |
59 }; | 59 }; |
60 | 60 |
61 // In order to keep track of what nodes the browser knows about, we keep a | 61 // In order to keep track of what nodes the browser knows about, we keep a |
62 // representation of the browser tree - just IDs and parent/child | 62 // representation of the browser tree - just IDs and parent/child |
63 // relationships. | 63 // relationships. |
64 struct BrowserTreeNode { | 64 struct BrowserTreeNode { |
65 BrowserTreeNode() {} | 65 BrowserTreeNode() : id(0) {} |
66 ~BrowserTreeNode() {} | 66 ~BrowserTreeNode() {} |
67 int32 id; | 67 int32 id; |
68 std::vector<BrowserTreeNode*> children; | 68 std::vector<BrowserTreeNode*> children; |
69 }; | 69 }; |
70 | 70 |
71 // Send queued notifications from the renderer to the browser. | 71 // Send queued notifications from the renderer to the browser. |
72 void SendPendingAccessibilityNotifications(); | 72 void SendPendingAccessibilityNotifications(); |
73 | 73 |
74 // Update our representation of what nodes the browser has, given a | 74 // Update our representation of what nodes the browser has, given a |
75 // tree of nodes. | 75 // tree of nodes. |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 // Set if we are waiting for an accessibility notification ack. | 117 // Set if we are waiting for an accessibility notification ack. |
118 bool ack_pending_; | 118 bool ack_pending_; |
119 | 119 |
120 // True if verbose logging of accessibility events is on. | 120 // True if verbose logging of accessibility events is on. |
121 bool logging_; | 121 bool logging_; |
122 | 122 |
123 DISALLOW_COPY_AND_ASSIGN(RendererAccessibility); | 123 DISALLOW_COPY_AND_ASSIGN(RendererAccessibility); |
124 }; | 124 }; |
125 | 125 |
126 #endif // CONTENT_RENDERER_RENDERER_ACCESSIBILITY_H_ | 126 #endif // CONTENT_RENDERER_RENDERER_ACCESSIBILITY_H_ |
OLD | NEW |