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

Side by Side Diff: ui/accessibility/platform/ax_platform_node_delegate.h

Issue 2795543002: Add GetScreenBoundsRect to ui::AXPlatformNodeDelegate (Closed)
Patch Set: Created 3 years, 8 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_DELEGATE_H_ 5 #ifndef UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_DELEGATE_H_
6 #define UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_DELEGATE_H_ 6 #define UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_DELEGATE_H_
7 7
8 #include "ui/accessibility/ax_enums.h" 8 #include "ui/accessibility/ax_enums.h"
9 #include "ui/accessibility/ax_export.h" 9 #include "ui/accessibility/ax_export.h"
10 #include "ui/gfx/geometry/vector2d.h" 10 #include "ui/gfx/geometry/vector2d.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // be a native accessible object implemented by another class. 43 // be a native accessible object implemented by another class.
44 virtual gfx::NativeViewAccessible GetParent() = 0; 44 virtual gfx::NativeViewAccessible GetParent() = 0;
45 45
46 // Get the number of children of this node. 46 // Get the number of children of this node.
47 virtual int GetChildCount() = 0; 47 virtual int GetChildCount() = 0;
48 48
49 // Get the child of a node given a 0-based index. 49 // Get the child of a node given a 0-based index.
50 virtual gfx::NativeViewAccessible ChildAtIndex(int index) = 0; 50 virtual gfx::NativeViewAccessible ChildAtIndex(int index) = 0;
51 51
52 // Get the offset to convert local coordinates to screen global coordinates. 52 // Get the offset to convert local coordinates to screen global coordinates.
53 virtual gfx::Vector2d GetGlobalCoordinateOffset() = 0; 53 virtual gfx::Vector2d GetGlobalCoordinateOffset() = 0;
dmazzoni 2017/04/03 05:19:56 Please get rid of GetGlobalCoordinateOffset now, w
54 54
55 // Get the bounds of this node in screen coordinates.
56 virtual gfx::Rect GetScreenBoundsRect() const = 0;
57
55 // Do a *synchronous* hit test of the given location in global screen 58 // Do a *synchronous* hit test of the given location in global screen
56 // coordinates, and the node within this node's subtree (inclusive) that's 59 // coordinates, and the node within this node's subtree (inclusive) that's
57 // hit, if any. 60 // hit, if any.
58 // 61 //
59 // If the result is anything other than this object or NULL, it will be 62 // If the result is anything other than this object or NULL, it will be
60 // hit tested again recursively - that allows hit testing to work across 63 // hit tested again recursively - that allows hit testing to work across
61 // implementation classes. It's okay to take advantage of this and return 64 // implementation classes. It's okay to take advantage of this and return
62 // only an immediate child and not the deepest descendant. 65 // only an immediate child and not the deepest descendant.
63 // 66 //
64 // This function is mainly used by accessibility debugging software. 67 // This function is mainly used by accessibility debugging software.
(...skipping 21 matching lines...) Expand all
86 virtual bool AccessibilityPerformAction(const ui::AXActionData& data) = 0; 89 virtual bool AccessibilityPerformAction(const ui::AXActionData& data) = 0;
87 90
88 // Perform the default action, e.g. click a button, follow a link, or 91 // Perform the default action, e.g. click a button, follow a link, or
89 // toggle a checkbox. 92 // toggle a checkbox.
90 virtual void DoDefaultAction() = 0; 93 virtual void DoDefaultAction() = 0;
91 }; 94 };
92 95
93 } // namespace ui 96 } // namespace ui
94 97
95 #endif // UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_DELEGATE_H_ 98 #endif // UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/accessibility/browser_accessibility_win.h ('k') | ui/accessibility/platform/test_ax_node_wrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698