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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 224 int32_t unique_id() const { return unique_id_; } | 224 int32_t unique_id() const { return unique_id_; } |
| 225 | 225 |
| 226 // These access the internal accessibility tree, which doesn't necessarily | 226 // These access the internal accessibility tree, which doesn't necessarily |
| 227 // reflect the accessibility tree that should be exposed on each platform. | 227 // reflect the accessibility tree that should be exposed on each platform. |
| 228 // Use PlatformChildCount and PlatformGetChild to implement platform | 228 // Use PlatformChildCount and PlatformGetChild to implement platform |
| 229 // accessibility APIs. | 229 // accessibility APIs. |
| 230 uint32_t InternalChildCount() const; | 230 uint32_t InternalChildCount() const; |
| 231 BrowserAccessibility* InternalGetChild(uint32_t child_index) const; | 231 BrowserAccessibility* InternalGetChild(uint32_t child_index) const; |
| 232 BrowserAccessibility* InternalGetParent() const; | 232 BrowserAccessibility* InternalGetParent() const; |
| 233 | 233 |
| 234 BrowserAccessibility* GetParent() const; | 234 BrowserAccessibility* GetAccessibilityParent() const; |
|
dmazzoni
2017/03/21 16:42:20
How about naming it PlatformGetParent(). See comme
| |
| 235 int32_t GetIndexInParent() const; | 235 int32_t GetIndexInParent() const; |
| 236 | 236 |
| 237 int32_t GetId() const; | 237 int32_t GetId() const; |
| 238 const ui::AXNodeData& GetData() const; | 238 const ui::AXNodeData& GetData() const; |
| 239 gfx::RectF GetLocation() const; | 239 gfx::RectF GetLocation() const; |
| 240 ui::AXRole GetRole() const; | 240 ui::AXRole GetRole() const; |
| 241 int32_t GetState() const; | 241 int32_t GetState() const; |
| 242 | 242 |
| 243 typedef base::StringPairs HtmlAttributes; | 243 typedef base::StringPairs HtmlAttributes; |
| 244 const HtmlAttributes& GetHtmlAttributes() const; | 244 const HtmlAttributes& GetHtmlAttributes() const; |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 391 // bounds, but "virtual" elements in the accessibility tree that don't | 391 // bounds, but "virtual" elements in the accessibility tree that don't |
| 392 // correspond to a layed-out element sometimes don't have bounds. | 392 // correspond to a layed-out element sometimes don't have bounds. |
| 393 void FixEmptyBounds(gfx::RectF* bounds) const; | 393 void FixEmptyBounds(gfx::RectF* bounds) const; |
| 394 | 394 |
| 395 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); | 395 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); |
| 396 }; | 396 }; |
| 397 | 397 |
| 398 } // namespace content | 398 } // namespace content |
| 399 | 399 |
| 400 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ | 400 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ |
| OLD | NEW |