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

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

Issue 2886353003: Remove BrowserAccessibility::platform_node_ (Closed)
Patch Set: rebase Created 3 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 <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 std::string ComputeAccessibleNameFromDescendants() const; 386 std::string ComputeAccessibleNameFromDescendants() const;
387 387
388 // Creates a text position rooted at this object. 388 // Creates a text position rooted at this object.
389 AXPlatformPosition::AXPositionInstance CreatePositionAt( 389 AXPlatformPosition::AXPositionInstance CreatePositionAt(
390 int offset, 390 int offset,
391 ui::AXTextAffinity affinity = ui::AX_TEXT_AFFINITY_DOWNSTREAM) const; 391 ui::AXTextAffinity affinity = ui::AX_TEXT_AFFINITY_DOWNSTREAM) const;
392 392
393 // Gets the text offsets where new lines start. 393 // Gets the text offsets where new lines start.
394 std::vector<int> GetLineStartOffsets() const; 394 std::vector<int> GetLineStartOffsets() const;
395 395
396 virtual gfx::NativeViewAccessible GetNativeViewAccessible();
397
396 // AXPlatformNodeDelegate. 398 // AXPlatformNodeDelegate.
397 const ui::AXNodeData& GetData() const override; 399 const ui::AXNodeData& GetData() const override;
398 gfx::NativeWindow GetTopLevelWidget() override; 400 gfx::NativeWindow GetTopLevelWidget() override;
399 gfx::NativeViewAccessible GetParent() override; 401 gfx::NativeViewAccessible GetParent() override;
400 int GetChildCount() override; 402 int GetChildCount() override;
401 gfx::NativeViewAccessible ChildAtIndex(int index) override; 403 gfx::NativeViewAccessible ChildAtIndex(int index) override;
402 gfx::Rect GetScreenBoundsRect() const override; 404 gfx::Rect GetScreenBoundsRect() const override;
403 gfx::NativeViewAccessible HitTestSync(int x, int y) override; 405 gfx::NativeViewAccessible HitTestSync(int x, int y) override;
404 gfx::NativeViewAccessible GetFocus() override; 406 gfx::NativeViewAccessible GetFocus() override;
405 gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent() override; 407 gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent() override;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 // bounds, but "virtual" elements in the accessibility tree that don't 441 // bounds, but "virtual" elements in the accessibility tree that don't
440 // correspond to a layed-out element sometimes don't have bounds. 442 // correspond to a layed-out element sometimes don't have bounds.
441 void FixEmptyBounds(gfx::RectF* bounds) const; 443 void FixEmptyBounds(gfx::RectF* bounds) const;
442 444
443 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); 445 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility);
444 }; 446 };
445 447
446 } // namespace content 448 } // namespace content
447 449
448 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ 450 #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