OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
505 dispatch.Receive()); | 505 dispatch.Receive()); |
506 if (result == S_FALSE || result == E_NOINTERFACE) { | 506 if (result == S_FALSE || result == E_NOINTERFACE) { |
507 // The object in question really is a simple element. | 507 // The object in question really is a simple element. |
508 return new AccObject(accessible, V_I4(&variant)); | 508 return new AccObject(accessible, V_I4(&variant)); |
509 } else if (SUCCEEDED(result)) { | 509 } else if (SUCCEEDED(result)) { |
510 // The object in question was actually a full object. | 510 // The object in question was actually a full object. |
511 return CreateFromDispatch(dispatch.get()); | 511 return CreateFromDispatch(dispatch.get()); |
512 } | 512 } |
513 VLOG(1) << "Failed to determine if child id refers to a full " | 513 VLOG(1) << "Failed to determine if child id refers to a full " |
514 << "object. Error: " << result << std::endl | 514 << "object. Error: " << result << std::endl |
515 << "Parent object: " << WideToUTF8(object->GetDescription()) | 515 << "Parent object: " << base::WideToUTF8(object->GetDescription()) |
516 << std::endl << "Child ID: " << V_I4(&variant); | 516 << std::endl << "Child ID: " << V_I4(&variant); |
517 return NULL; | 517 return NULL; |
518 } else if (V_VT(&variant) == VT_DISPATCH) { | 518 } else if (V_VT(&variant) == VT_DISPATCH) { |
519 return CreateFromDispatch(V_DISPATCH(&variant)); | 519 return CreateFromDispatch(V_DISPATCH(&variant)); |
520 } | 520 } |
521 LOG(WARNING) << "Unrecognizable child type"; | 521 LOG(WARNING) << "Unrecognizable child type"; |
522 return NULL; | 522 return NULL; |
523 } | 523 } |
524 | 524 |
525 bool AccObject::PostMouseClickAtCenter(int button_down, int button_up) { | 525 bool AccObject::PostMouseClickAtCenter(int button_down, int button_up) { |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
739 return desk; | 739 return desk; |
740 } | 740 } |
741 | 741 |
742 base::FilePath GetIAccessible2ProxyStubPath() { | 742 base::FilePath GetIAccessible2ProxyStubPath() { |
743 base::FilePath path; | 743 base::FilePath path; |
744 PathService::Get(chrome::DIR_APP, &path); | 744 PathService::Get(chrome::DIR_APP, &path); |
745 return path.AppendASCII("IAccessible2Proxy.dll"); | 745 return path.AppendASCII("IAccessible2Proxy.dll"); |
746 } | 746 } |
747 | 747 |
748 } // namespace chrome_frame_test | 748 } // namespace chrome_frame_test |
OLD | NEW |