| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/file_path.h" | 13 #include "base/file_path.h" |
| 14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 15 #include "base/scoped_comptr_win.h" | 15 #include "base/win/scoped_comptr.h" |
| 16 #include "base/win/scoped_variant.h" | 16 #include "base/win/scoped_variant.h" |
| 17 #include "chrome_frame/test/win_event_receiver.h" | 17 #include "chrome_frame/test/win_event_receiver.h" |
| 18 | 18 |
| 19 namespace gfx { | 19 namespace gfx { |
| 20 class Rect; | 20 class Rect; |
| 21 } | 21 } |
| 22 | 22 |
| 23 namespace chrome_frame_test { | 23 namespace chrome_frame_test { |
| 24 | 24 |
| 25 // Wrapper for MSAA/IAccessible2 accessibility objects. IAccessible2 is an | 25 // Wrapper for MSAA/IAccessible2 accessibility objects. IAccessible2 is an |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 static AccObject* CreateFromVariant(AccObject* object, | 166 static AccObject* CreateFromVariant(AccObject* object, |
| 167 const VARIANT& variant); | 167 const VARIANT& variant); |
| 168 | 168 |
| 169 // Posts the given mouse button down and up messages at this object's center. | 169 // Posts the given mouse button down and up messages at this object's center. |
| 170 // Returns true on success. | 170 // Returns true on success. |
| 171 bool PostMouseClickAtCenter(int button_down, int button_up); | 171 bool PostMouseClickAtCenter(int button_down, int button_up); |
| 172 | 172 |
| 173 // Helper method for posting mouse button messages. | 173 // Helper method for posting mouse button messages. |
| 174 bool PostMouseButtonMessages(int button_up, int button_down, int x, int y); | 174 bool PostMouseButtonMessages(int button_up, int button_down, int x, int y); |
| 175 | 175 |
| 176 ScopedComPtr<IAccessible> accessible_; | 176 base::win::ScopedComPtr<IAccessible> accessible_; |
| 177 base::win::ScopedVariant child_id_; | 177 base::win::ScopedVariant child_id_; |
| 178 | 178 |
| 179 DISALLOW_COPY_AND_ASSIGN(AccObject); | 179 DISALLOW_COPY_AND_ASSIGN(AccObject); |
| 180 }; | 180 }; |
| 181 | 181 |
| 182 // Finds an accessibility object with properties that match the specified | 182 // Finds an accessibility object with properties that match the specified |
| 183 // matching patterns. These patterns can include the standard * and ? wildcards. | 183 // matching patterns. These patterns can include the standard * and ? wildcards. |
| 184 class AccObjectMatcher { | 184 class AccObjectMatcher { |
| 185 public: | 185 public: |
| 186 // Create a matcher from the given string. |matcher| should include matching | 186 // Create a matcher from the given string. |matcher| should include matching |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 | 284 |
| 285 // Returns whether the desktop is unlocked. | 285 // Returns whether the desktop is unlocked. |
| 286 bool IsDesktopUnlocked(); | 286 bool IsDesktopUnlocked(); |
| 287 | 287 |
| 288 // Returns the location of the IAccessible2 COM proxy stub DLL. | 288 // Returns the location of the IAccessible2 COM proxy stub DLL. |
| 289 FilePath GetIAccessible2ProxyStubPath(); | 289 FilePath GetIAccessible2ProxyStubPath(); |
| 290 | 290 |
| 291 } // namespace chrome_frame_test | 291 } // namespace chrome_frame_test |
| 292 | 292 |
| 293 #endif // CHROME_FRAME_TEST_CHROME_FRAME_UI_TEST_UTILS_H_ | 293 #endif // CHROME_FRAME_TEST_CHROME_FRAME_UI_TEST_UTILS_H_ |
| OLD | NEW |