Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 267 | 267 |
| 268 // Returns true if the caret is active on this object. | 268 // Returns true if the caret is active on this object. |
| 269 bool HasCaret() const; | 269 bool HasCaret() const; |
| 270 | 270 |
| 271 // Returns true if this node is an editable text field of any kind. | 271 // Returns true if this node is an editable text field of any kind. |
| 272 bool IsEditableText() const; | 272 bool IsEditableText() const; |
| 273 | 273 |
| 274 // True if this is a web area, and its grandparent is a presentational iframe. | 274 // True if this is a web area, and its grandparent is a presentational iframe. |
| 275 bool IsWebAreaForPresentationalIframe() const; | 275 bool IsWebAreaForPresentationalIframe() const; |
| 276 | 276 |
| 277 // Is any control, like a button, text field, etc. | 277 // Indicates whether this is a control with a value, like a combo box. |
| 278 bool IsControl() const; | 278 bool IsControlWithValue() const; |
|
aboxhall
2015/10/29 17:58:49
I would call this something like IsControlWithVisi
| |
| 279 | 279 |
| 280 protected: | 280 protected: |
| 281 BrowserAccessibility(); | 281 BrowserAccessibility(); |
| 282 | 282 |
| 283 // The manager of this tree of accessibility objects. | 283 // The manager of this tree of accessibility objects. |
| 284 BrowserAccessibilityManager* manager_; | 284 BrowserAccessibilityManager* manager_; |
| 285 | 285 |
| 286 // The underlying node. | 286 // The underlying node. |
| 287 ui::AXNode* node_; | 287 ui::AXNode* node_; |
| 288 | 288 |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 301 // its nearest scrollable ancestor) to local bounds (which are relative | 301 // its nearest scrollable ancestor) to local bounds (which are relative |
| 302 // to the top of the web accessibility tree). | 302 // to the top of the web accessibility tree). |
| 303 gfx::Rect ElementBoundsToLocalBounds(gfx::Rect bounds) const; | 303 gfx::Rect ElementBoundsToLocalBounds(gfx::Rect bounds) const; |
| 304 | 304 |
| 305 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); | 305 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); |
| 306 }; | 306 }; |
| 307 | 307 |
| 308 } // namespace content | 308 } // namespace content |
| 309 | 309 |
| 310 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ | 310 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ |
| OLD | NEW |