Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Side by Side Diff: content/renderer/renderer_accessibility.h

Issue 8770021: Initial implementation of IAccessible2 scrollTo and setTextSelection and (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 OnEnableAccessibility(); 85 void OnEnableAccessibility();
86 void OnSetAccessibilityFocus(int acc_obj_id); 86 void OnSetAccessibilityFocus(int acc_obj_id);
87 void OnChangeScrollPosition(int acc_obj_id, int scroll_x, int scroll_y);
88 void OnSetTextSelection(int acc_obj_id, int start_offset, int end_offset);
87 89
88 // Whether or not this notification typically needs to send 90 // Whether or not this notification typically needs to send
89 // updates to its children, too. 91 // updates to its children, too.
90 bool ShouldIncludeChildren(const Notification& notification); 92 bool ShouldIncludeChildren(const Notification& notification);
91 93
92 // Returns the main top-level document for this page, or NULL if there's 94 // Returns the main top-level document for this page, or NULL if there's
93 // no view or frame. 95 // no view or frame.
94 WebKit::WebDocument GetMainDocument(); 96 WebKit::WebDocument GetMainDocument();
95 97
96 // So we can queue up tasks to be executed later. 98 // So we can queue up tasks to be executed later.
(...skipping 20 matching lines...) Expand all
117 // True if verbose logging of accessibility events is on. 119 // True if verbose logging of accessibility events is on.
118 bool logging_; 120 bool logging_;
119 121
120 // True if we've sent a load complete notification for this page already. 122 // True if we've sent a load complete notification for this page already.
121 bool sent_load_complete_; 123 bool sent_load_complete_;
122 124
123 DISALLOW_COPY_AND_ASSIGN(RendererAccessibility); 125 DISALLOW_COPY_AND_ASSIGN(RendererAccessibility);
124 }; 126 };
125 127
126 #endif // CONTENT_RENDERER_RENDERER_ACCESSIBILITY_H_ 128 #endif // CONTENT_RENDERER_RENDERER_ACCESSIBILITY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698