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

Side by Side Diff: chrome_frame/test/chrome_frame_ui_test_utils.h

Issue 3156026: Add a method for setting the value of an Accessibility object.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome_frame/test/chrome_frame_ui_test_utils.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_FRAME_TEST_CHROME_FRAME_UI_TEST_UTILS_H_ 5 #ifndef CHROME_FRAME_TEST_CHROME_FRAME_UI_TEST_UTILS_H_
6 #define CHROME_FRAME_TEST_CHROME_FRAME_UI_TEST_UTILS_H_ 6 #define CHROME_FRAME_TEST_CHROME_FRAME_UI_TEST_UTILS_H_
7 7
8 #include <oleacc.h> 8 #include <oleacc.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 22 matching lines...) Expand all
33 // Creates an AccObject with an IAccessible and child id. |accessible| must 33 // Creates an AccObject with an IAccessible and child id. |accessible| must
34 // not be NULL. |child_id| must always be CHILDID_SELF unless this AccObject 34 // not be NULL. |child_id| must always be CHILDID_SELF unless this AccObject
35 // is a simple element. 35 // is a simple element.
36 AccObject(IAccessible* accessible, int child_id = CHILDID_SELF); 36 AccObject(IAccessible* accessible, int child_id = CHILDID_SELF);
37 37
38 // Creates an AccObject corresponding to the given window. May return NULL 38 // Creates an AccObject corresponding to the given window. May return NULL
39 // if there is not accessible object for the window. The client owns the 39 // if there is not accessible object for the window. The client owns the
40 // created AccObject. 40 // created AccObject.
41 static AccObject* CreateFromWindow(HWND hwnd); 41 static AccObject* CreateFromWindow(HWND hwnd);
42 42
43 // Creates an AccObject corresponding to the object that generated a
44 // WinEvent. Returns NULL on failure.
45 static AccObject* CreateFromEvent(HWND hwnd, LONG object_id, LONG child_id);
46
43 // Creates an AccObject from querying the given IDispatch. May return NULL 47 // Creates an AccObject from querying the given IDispatch. May return NULL
44 // if the object does not implement IAccessible. The client owns the created 48 // if the object does not implement IAccessible. The client owns the created
45 // AccObject. 49 // AccObject.
46 // Note: This does not work in Chrome. 50 // Note: This does not work in Chrome.
47 static AccObject* CreateFromDispatch(IDispatch* dispatch); 51 static AccObject* CreateFromDispatch(IDispatch* dispatch);
48 52
49 // Creates an AccObject corresponding to the accessible object at the screen 53 // Creates an AccObject corresponding to the accessible object at the screen
50 // coordinates given. Returns NULL on failure. The client owns the created 54 // coordinates given. Returns NULL on failure. The client owns the created
51 // AccObject. 55 // AccObject.
52 static AccObject* CreateFromPoint(int x, int y); 56 static AccObject* CreateFromPoint(int x, int y);
53 57
54 // Performs the default action on this object. Returns whether the action 58 // Performs the default action on this object. Returns whether the action
55 // performed successfully. Will cause test failure if unsuccessful. 59 // performed successfully. Will cause test failure if unsuccessful.
56 bool DoDefaultAction(); 60 bool DoDefaultAction();
57 61
58 // Focuses this object. Returns whether the object receives focus. Will cause 62 // Focuses this object. Returns whether the object receives focus. Will cause
59 // test failure if the object is not focused. 63 // test failure if the object is not focused.
60 bool Focus(); 64 bool Focus();
61 65
62 // Selects this object. Returns whether the object is now selected. Will cause 66 // Selects this object. Returns whether the object is now selected. Will cause
63 // test failure if the object is not selected. 67 // test failure if the object is not selected.
64 bool Select(); 68 bool Select();
65 69
70 // Sets the value of the object. Will cause test failure if unsuccessful.
71 bool SetValue(const std::wstring& value);
72
66 // Gets the name of the object and returns true on success. 73 // Gets the name of the object and returns true on success.
67 bool GetName(std::wstring* name); 74 bool GetName(std::wstring* name);
68 75
69 // Gets the role text of the object and returns true on success. 76 // Gets the role text of the object and returns true on success.
70 bool GetRoleText(std::wstring* role_text); 77 bool GetRoleText(std::wstring* role_text);
71 78
72 // Gets the value of the object and returns true on success. 79 // Gets the value of the object and returns true on success.
73 bool GetValue(std::wstring* value); 80 bool GetValue(std::wstring* value);
74 81
75 // Gets the state of the object and returns true on success. 82 // Gets the state of the object and returns true on success.
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 // Writes the accessibility tree for the given window to standard out. Used for 171 // Writes the accessibility tree for the given window to standard out. Used for
165 // debugging/logging. 172 // debugging/logging.
166 void DumpAccessibilityTreeForWindow(HWND hwnd); 173 void DumpAccessibilityTreeForWindow(HWND hwnd);
167 174
168 // Returns whether the desktop is unlocked. 175 // Returns whether the desktop is unlocked.
169 bool IsDesktopUnlocked(); 176 bool IsDesktopUnlocked();
170 177
171 } // namespace chrome_frame_test 178 } // namespace chrome_frame_test
172 179
173 #endif // CHROME_FRAME_TEST_CHROME_FRAME_UI_TEST_UTILS_H_ 180 #endif // CHROME_FRAME_TEST_CHROME_FRAME_UI_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome_frame/test/chrome_frame_ui_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698