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

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

Issue 1134653003: Implement UIElementsForSearchPredicate accessibility APIs for OS X. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address feedback Created 5 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
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_H_ 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_
6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_
7 7
8 #include <map> 8 #include <map>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 166
167 int32 GetId() const; 167 int32 GetId() const;
168 const ui::AXNodeData& GetData() const; 168 const ui::AXNodeData& GetData() const;
169 gfx::Rect GetLocation() const; 169 gfx::Rect GetLocation() const;
170 int32 GetRole() const; 170 int32 GetRole() const;
171 int32 GetState() const; 171 int32 GetState() const;
172 172
173 typedef base::StringPairs HtmlAttributes; 173 typedef base::StringPairs HtmlAttributes;
174 const HtmlAttributes& GetHtmlAttributes() const; 174 const HtmlAttributes& GetHtmlAttributes() const;
175 175
176
177 // Returns true if this is a native platform-specific object, vs a 176 // Returns true if this is a native platform-specific object, vs a
178 // cross-platform generic object. Don't call ToBrowserAccessibilityXXX if 177 // cross-platform generic object. Don't call ToBrowserAccessibilityXXX if
179 // IsNative returns false. 178 // IsNative returns false.
180 virtual bool IsNative() const; 179 virtual bool IsNative() const;
181 180
182 #if defined(OS_MACOSX) && __OBJC__ 181 #if defined(OS_MACOSX) && __OBJC__
183 BrowserAccessibilityCocoa* ToBrowserAccessibilityCocoa(); 182 BrowserAccessibilityCocoa* ToBrowserAccessibilityCocoa();
184 #elif defined(OS_WIN) 183 #elif defined(OS_WIN)
185 BrowserAccessibilityWin* ToBrowserAccessibilityWin(); 184 BrowserAccessibilityWin* ToBrowserAccessibilityWin();
186 #endif 185 #endif
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 254
256 // Returns true if this node is an cell or an table header. 255 // Returns true if this node is an cell or an table header.
257 bool IsCellOrTableHeaderRole() const; 256 bool IsCellOrTableHeaderRole() const;
258 257
259 // Returns true if this node is an editable text field of any kind. 258 // Returns true if this node is an editable text field of any kind.
260 bool IsEditableText() const; 259 bool IsEditableText() const;
261 260
262 // True if this is a web area, and its grandparent is a presentational iframe. 261 // True if this is a web area, and its grandparent is a presentational iframe.
263 bool IsWebAreaForPresentationalIframe() const; 262 bool IsWebAreaForPresentationalIframe() const;
264 263
264 // Is any control, like a button, text field, etc.
265 bool IsControl() const;
266
265 protected: 267 protected:
266 BrowserAccessibility(); 268 BrowserAccessibility();
267 269
268 // The manager of this tree of accessibility objects. 270 // The manager of this tree of accessibility objects.
269 BrowserAccessibilityManager* manager_; 271 BrowserAccessibilityManager* manager_;
270 272
271 // The underlying node. 273 // The underlying node.
272 ui::AXNode* node_; 274 ui::AXNode* node_;
273 275
274 private: 276 private:
(...skipping 10 matching lines...) Expand all
285 // its nearest scrollable ancestor) to local bounds (which are relative 287 // its nearest scrollable ancestor) to local bounds (which are relative
286 // to the top of the web accessibility tree). 288 // to the top of the web accessibility tree).
287 gfx::Rect ElementBoundsToLocalBounds(gfx::Rect bounds) const; 289 gfx::Rect ElementBoundsToLocalBounds(gfx::Rect bounds) const;
288 290
289 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); 291 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility);
290 }; 292 };
291 293
292 } // namespace content 294 } // namespace content
293 295
294 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ 296 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698