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

Side by Side Diff: content/browser/accessibility/browser_accessibility_manager.h

Issue 10382051: Add initial GTK web accessibility framework (third attempt). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_
6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 gfx::Rect GetViewBounds(); 126 gfx::Rect GetViewBounds();
127 127
128 // Called when the renderer process has notified us of about tree changes. 128 // Called when the renderer process has notified us of about tree changes.
129 // Send a notification to MSAA clients of the change. 129 // Send a notification to MSAA clients of the change.
130 void OnAccessibilityNotifications( 130 void OnAccessibilityNotifications(
131 const std::vector<AccessibilityHostMsg_NotificationParams>& params); 131 const std::vector<AccessibilityHostMsg_NotificationParams>& params);
132 132
133 gfx::NativeView GetParentView(); 133 gfx::NativeView GetParentView();
134 134
135 #if defined(OS_WIN) 135 #if defined(OS_WIN)
136 BrowserAccessibilityManagerWin* toBrowserAccessibilityManagerWin(); 136 BrowserAccessibilityManagerWin* ToBrowserAccessibilityManagerWin();
137 #endif 137 #endif
138 138
139 // Return the object that has focus, if it's a descandant of the 139 // Return the object that has focus, if it's a descandant of the
140 // given root (inclusive). Does not make a new reference. 140 // given root (inclusive). Does not make a new reference.
141 BrowserAccessibility* GetFocus(BrowserAccessibility* root); 141 BrowserAccessibility* GetFocus(BrowserAccessibility* root);
142 142
143 protected: 143 protected:
144 BrowserAccessibilityManager( 144 BrowserAccessibilityManager(
145 gfx::NativeView parent_view, 145 gfx::NativeView parent_view,
146 const WebAccessibility& src, 146 const WebAccessibility& src,
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 // we use internally here. 184 // we use internally here.
185 base::hash_map<int32, int32> renderer_id_to_child_id_map_; 185 base::hash_map<int32, int32> renderer_id_to_child_id_map_;
186 186
187 // A mapping from child IDs to BrowserAccessibility objects. 187 // A mapping from child IDs to BrowserAccessibility objects.
188 base::hash_map<int32, BrowserAccessibility*> child_id_map_; 188 base::hash_map<int32, BrowserAccessibility*> child_id_map_;
189 189
190 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); 190 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager);
191 }; 191 };
192 192
193 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ 193 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698