OLD | NEW |
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 #include "chrome_frame/test/chrome_frame_ui_test_utils.h" | 5 #include "chrome_frame/test/chrome_frame_ui_test_utils.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 | 8 |
9 #include <sstream> | 9 #include <sstream> |
10 #include <stack> | 10 #include <stack> |
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
529 DCHECK(object); | 529 DCHECK(object); |
530 DCHECK(match); | 530 DCHECK(match); |
531 *match = NULL; | 531 *match = NULL; |
532 return FindHelper(object, match); | 532 return FindHelper(object, match); |
533 } | 533 } |
534 | 534 |
535 bool AccObjectMatcher::FindInWindow(HWND hwnd, | 535 bool AccObjectMatcher::FindInWindow(HWND hwnd, |
536 scoped_refptr<AccObject>* match) const { | 536 scoped_refptr<AccObject>* match) const { |
537 scoped_refptr<AccObject> object(AccObject::CreateFromWindow(hwnd)); | 537 scoped_refptr<AccObject> object(AccObject::CreateFromWindow(hwnd)); |
538 if (!object) { | 538 if (!object) { |
539 LOG(INFO) << "Failed to get accessible object from window"; | 539 VLOG(1) << "Failed to get accessible object from window"; |
540 return false; | 540 return false; |
541 } | 541 } |
542 return Find(object.get(), match); | 542 return Find(object.get(), match); |
543 } | 543 } |
544 | 544 |
545 bool AccObjectMatcher::DoesMatch(AccObject* object) const { | 545 bool AccObjectMatcher::DoesMatch(AccObject* object) const { |
546 DCHECK(object); | 546 DCHECK(object); |
547 bool does_match = true; | 547 bool does_match = true; |
548 std::wstring name, role_text, value; | 548 std::wstring name, role_text, value; |
549 if (name_.length()) { | 549 if (name_.length()) { |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
663 } | 663 } |
664 | 664 |
665 bool IsDesktopUnlocked() { | 665 bool IsDesktopUnlocked() { |
666 HDESK desk = ::OpenInputDesktop(0, FALSE, DESKTOP_SWITCHDESKTOP); | 666 HDESK desk = ::OpenInputDesktop(0, FALSE, DESKTOP_SWITCHDESKTOP); |
667 if (desk) | 667 if (desk) |
668 ::CloseDesktop(desk); | 668 ::CloseDesktop(desk); |
669 return desk; | 669 return desk; |
670 } | 670 } |
671 | 671 |
672 } // namespace chrome_frame_test | 672 } // namespace chrome_frame_test |
OLD | NEW |