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

Side by Side Diff: chrome/browser/browser_accessibility_manager_win.h

Issue 3380017: Support additional webkit accessibility notifications and states. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Adding missig file. 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_BROWSER_BROWSER_ACCESSIBILITY_MANAGER_WIN_H_ 5 #ifndef CHROME_BROWSER_BROWSER_ACCESSIBILITY_MANAGER_WIN_H_
6 #define CHROME_BROWSER_BROWSER_ACCESSIBILITY_MANAGER_WIN_H_ 6 #define CHROME_BROWSER_BROWSER_ACCESSIBILITY_MANAGER_WIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include <atlbase.h> 9 #include <atlbase.h>
10 #include <atlcom.h> 10 #include <atlcom.h>
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 // Return the object that has focus, if it's a descandant of the 70 // Return the object that has focus, if it's a descandant of the
71 // given root (inclusive). Does not make a new reference. 71 // given root (inclusive). Does not make a new reference.
72 BrowserAccessibility* GetFocus(BrowserAccessibility* root); 72 BrowserAccessibility* GetFocus(BrowserAccessibility* root);
73 73
74 // Tell the renderer to set focus to this node. 74 // Tell the renderer to set focus to this node.
75 void SetFocus(const BrowserAccessibility& node); 75 void SetFocus(const BrowserAccessibility& node);
76 76
77 // Tell the renderer to do the default action for this node. 77 // Tell the renderer to do the default action for this node.
78 void DoDefaultAction(const BrowserAccessibility& node); 78 void DoDefaultAction(const BrowserAccessibility& node);
79 79
80 // Called when the renderer process has notified us of a focus, state, 80 // Called when the renderer process has notified us of about tree changes.
81 // or children change. Send a notification to MSAA clients of the change. 81 // Send a notification to MSAA clients of the change.
82 void OnAccessibilityFocusChange(int acc_obj_id);
83 void OnAccessibilityNotifications( 82 void OnAccessibilityNotifications(
84 const std::vector<ViewHostMsg_AccessibilityNotification_Params>& params); 83 const std::vector<ViewHostMsg_AccessibilityNotification_Params>& params);
85 84
86 private: 85 private:
87 // Update the accessibility tree with an updated WebAccessibility tree or 86 // Update the accessibility tree with an updated WebAccessibility tree or
88 // subtree received from the renderer process. Returns the updated node or 87 // subtree received from the renderer process. Returns the updated node or
89 // NULL if no node was updated. 88 // NULL if no node was updated.
90 BrowserAccessibility* UpdateTree( 89 BrowserAccessibility* UpdateTree(
91 const webkit_glue::WebAccessibility& acc_obj); 90 const webkit_glue::WebAccessibility& acc_obj);
92 91
93 void OnAccessibilityObjectStateChange( 92 void OnAccessibilityObjectStateChange(
94 const webkit_glue::WebAccessibility& acc_obj); 93 const webkit_glue::WebAccessibility& acc_obj);
95 void OnAccessibilityObjectChildrenChange( 94 void OnAccessibilityObjectChildrenChange(
96 const webkit_glue::WebAccessibility& acc_obj); 95 const webkit_glue::WebAccessibility& acc_obj);
96 void OnAccessibilityObjectFocusChange(
97 const webkit_glue::WebAccessibility& acc_obj);
98 void OnAccessibilityObjectLoadComplete(
99 const webkit_glue::WebAccessibility& acc_obj);
97 void OnAccessibilityObjectValueChange( 100 void OnAccessibilityObjectValueChange(
98 const webkit_glue::WebAccessibility& acc_obj); 101 const webkit_glue::WebAccessibility& acc_obj);
99 102
100 // Returns the next MSAA child id. 103 // Returns the next MSAA child id.
101 static LONG GetNextChildID(); 104 static LONG GetNextChildID();
102 105
103 // Recursively build a tree of BrowserAccessibility objects from 106 // Recursively build a tree of BrowserAccessibility objects from
104 // the WebAccessibility tree received from the renderer process. 107 // the WebAccessibility tree received from the renderer process.
105 BrowserAccessibility* CreateAccessibilityTree( 108 BrowserAccessibility* CreateAccessibilityTree(
106 BrowserAccessibility* parent, 109 BrowserAccessibility* parent,
(...skipping 27 matching lines...) Expand all
134 137
135 // The next child ID to use; static so that they're global to the process. 138 // The next child ID to use; static so that they're global to the process.
136 // Screen readers cache these IDs to see if they've seen the same object 139 // Screen readers cache these IDs to see if they've seen the same object
137 // before so we should avoid reusing them within the same project. 140 // before so we should avoid reusing them within the same project.
138 static LONG next_child_id_; 141 static LONG next_child_id_;
139 142
140 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); 143 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager);
141 }; 144 };
142 145
143 #endif // CHROME_BROWSER_BROWSER_ACCESSIBILITY_MANAGER_WIN_H_ 146 #endif // CHROME_BROWSER_BROWSER_ACCESSIBILITY_MANAGER_WIN_H_
OLDNEW
« no previous file with comments | « chrome/browser/accessibility_win_browsertest.cc ('k') | chrome/browser/browser_accessibility_manager_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698