summaryrefslogtreecommitdiffstats
path: root/chrome_frame/test/chrome_frame_ui_test_utils.h
diff options
context:
space:
mode:
authorkkania@chromium.org <kkania@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-06 17:44:10 +0000
committerkkania@chromium.org <kkania@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-06 17:44:10 +0000
commit62f0486fab337dba8a359c4e938dc3edd563ca5e (patch)
tree3865212c64368c88897d5d8bda43ea75e8638010 /chrome_frame/test/chrome_frame_ui_test_utils.h
parent4ee5bfeeb8ff41f0d036cd2964929b76cee2d75b (diff)
downloadchromium_src-62f0486fab337dba8a359c4e938dc3edd563ca5e.zip
chromium_src-62f0486fab337dba8a359c4e938dc3edd563ca5e.tar.gz
chromium_src-62f0486fab337dba8a359c4e938dc3edd563ca5e.tar.bz2
Find additional children of accessible elements that cannot be found using MSAA AccessibleChildren.
BUG=none TEST=none Review URL: http://codereview.chromium.org/3579010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61671 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/test/chrome_frame_ui_test_utils.h')
-rw-r--r--chrome_frame/test/chrome_frame_ui_test_utils.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/chrome_frame/test/chrome_frame_ui_test_utils.h b/chrome_frame/test/chrome_frame_ui_test_utils.h
index b6b4f6a..0b8c1f2 100644
--- a/chrome_frame/test/chrome_frame_ui_test_utils.h
+++ b/chrome_frame/test/chrome_frame_ui_test_utils.h
@@ -110,6 +110,14 @@ class AccObject : public base::RefCounted<AccObject> {
// Gets the number of children of this object and returns true on success.
bool GetChildCount(int* child_count);
+ // Gets an object resulting from the navigation and returns true if the
+ // navigation completed successfully. Even if true, |object| may still
+ // refer to a NULL object if no object was found from the navigation.
+ // |navigation_type| may be any navigation constant, such as NAVDIR_NEXT.
+ // Note: This method uses a deprecated IAccessible method.
+ bool GetFromNavigation(long navigation_type,
+ scoped_refptr<AccObject>* object);
+
// Gets the window containing this object and returns true on success. This
// method will return false if the object is not contained within a window.
bool GetWindow(HWND* window);
@@ -136,6 +144,13 @@ class AccObject : public base::RefCounted<AccObject> {
friend class base::RefCounted<AccObject>;
~AccObject() {}
+ // Creates an AccObject using the given variant, returning NULL on failure.
+ // The variant should be of type |VT_I4| referring to the id of a child of
+ // |object|, or of type |VT_DISPATCH|. This method is useful for converting
+ // the variant returned by many of the IAccessible methods into an AccObject.
+ static AccObject* CreateFromVariant(AccObject* object,
+ const VARIANT& variant);
+
// Helper method for posting mouse button messages at this object's location.
bool PostMouseButtonMessages(int button_up, int button_down);