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

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

Issue 2763803002: BrowserAccessibility should own a AXPlatformNode. (Closed)
Patch Set: Created 3 years, 9 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 386
387 // The manager of this tree of accessibility objects. 387 // The manager of this tree of accessibility objects.
388 BrowserAccessibilityManager* manager_; 388 BrowserAccessibilityManager* manager_;
389 389
390 // The underlying node. 390 // The underlying node.
391 ui::AXNode* node_; 391 ui::AXNode* node_;
392 392
393 // A unique ID, since node IDs are frame-local. 393 // A unique ID, since node IDs are frame-local.
394 int32_t unique_id_; 394 int32_t unique_id_;
395 395
396 // The ui platform backend
dmazzoni 2017/03/21 16:45:00 nit: Make comments full sentences, end with a peri
397 ui::AXPlatformNode* platform_node_;
398
396 private: 399 private:
397 // |GetInnerText| recursively includes all the text from descendants such as 400 // |GetInnerText| recursively includes all the text from descendants such as
398 // text found in any embedded object. In contrast, |GetText| might include a 401 // text found in any embedded object. In contrast, |GetText| might include a
399 // special character in the place of every embedded object instead of its 402 // special character in the place of every embedded object instead of its
400 // text, depending on the platform. 403 // text, depending on the platform.
401 base::string16 GetInnerText() const; 404 base::string16 GetInnerText() const;
402 405
403 // If a bounding rectangle is empty, compute it based on the union of its 406 // If a bounding rectangle is empty, compute it based on the union of its
404 // children, since most accessibility APIs don't like elements with no 407 // children, since most accessibility APIs don't like elements with no
405 // bounds, but "virtual" elements in the accessibility tree that don't 408 // bounds, but "virtual" elements in the accessibility tree that don't
406 // correspond to a layed-out element sometimes don't have bounds. 409 // correspond to a layed-out element sometimes don't have bounds.
407 void FixEmptyBounds(gfx::RectF* bounds) const; 410 void FixEmptyBounds(gfx::RectF* bounds) const;
408 411
409 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); 412 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility);
410 }; 413 };
411 414
412 } // namespace content 415 } // namespace content
413 416
414 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ 417 #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