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

Unified Diff: chrome/browser/browser_accessibility_manager_win.h

Issue 3389037: Make the selection start and end attributes of an html input control... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 3 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/browser_accessibility_manager_win.h
===================================================================
--- chrome/browser/browser_accessibility_manager_win.h (revision 61074)
+++ chrome/browser/browser_accessibility_manager_win.h (working copy)
@@ -82,9 +82,23 @@
const std::vector<ViewHostMsg_AccessibilityNotification_Params>& params);
private:
+ // Recursively compare the IDs of our subtree to a new subtree received
+ // from the renderer and return true if their IDs match exactly.
+ bool CanModifyTreeInPlace(
+ BrowserAccessibility* current_root,
+ const webkit_glue::WebAccessibility& new_root);
+
+ // Recursively modify a subtree (by reinitializing) to match a new
+ // subtree received from the renderer process. Should only be called
+ // if CanModifyTreeInPlace returned true.
+ void ModifyTreeInPlace(
+ BrowserAccessibility* current_root,
+ const webkit_glue::WebAccessibility& new_root);
+
// Update the accessibility tree with an updated WebAccessibility tree or
- // subtree received from the renderer process. Returns the updated node or
- // NULL if no node was updated.
+ // subtree received from the renderer process. First attempts to modify
+ // the tree in place, and if that fails, replaces the entire subtree.
+ // Returns the updated node or NULL if no node was updated.
BrowserAccessibility* UpdateTree(
const webkit_glue::WebAccessibility& acc_obj);
@@ -98,6 +112,8 @@
const webkit_glue::WebAccessibility& acc_obj);
void OnAccessibilityObjectValueChange(
const webkit_glue::WebAccessibility& acc_obj);
+ void OnAccessibilityObjectTextChange(
+ const webkit_glue::WebAccessibility& acc_obj);
// Returns the next MSAA child id.
static LONG GetNextChildID();
« no previous file with comments | « no previous file | chrome/browser/browser_accessibility_manager_win.cc » ('j') | chrome/browser/browser_accessibility_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698