| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/test/accessibility/accessibility_util.h" | 5 #include "chrome/test/accessibility/accessibility_util.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" |
| 7 #include "base/win_util.h" | 8 #include "base/win_util.h" |
| 8 #include "chrome/browser/view_ids.h" | 9 #include "chrome/browser/view_ids.h" |
| 9 #include "chrome/common/l10n_util.h" | |
| 10 #include "chrome/test/accessibility/constants.h" | 10 #include "chrome/test/accessibility/constants.h" |
| 11 #include "grit/chromium_strings.h" | 11 #include "grit/chromium_strings.h" |
| 12 #include "grit/generated_resources.h" | 12 #include "grit/generated_resources.h" |
| 13 | 13 |
| 14 VARIANT id_self = {VT_I4, CHILDID_SELF}; | 14 VARIANT id_self = {VT_I4, CHILDID_SELF}; |
| 15 | 15 |
| 16 // TODO(beng): clean this up | 16 // TODO(beng): clean this up |
| 17 static const wchar_t* kBrowserWindowKey = L"__BROWSER_WINDOW__"; | 17 static const wchar_t* kBrowserWindowKey = L"__BROWSER_WINDOW__"; |
| 18 | 18 |
| 19 static BOOL CALLBACK WindowEnumProc(HWND hwnd, LPARAM data) { | 19 static BOOL CALLBACK WindowEnumProc(HWND hwnd, LPARAM data) { |
| (...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 544 VariantInit(&state); | 544 VariantInit(&state); |
| 545 hr = acc_obj->get_accState(child, &state); | 545 hr = acc_obj->get_accState(child, &state); |
| 546 if (S_OK != hr || VT_I4 != state.vt) { | 546 if (S_OK != hr || VT_I4 != state.vt) { |
| 547 VariantClear(&state); | 547 VariantClear(&state); |
| 548 return -1; | 548 return -1; |
| 549 } | 549 } |
| 550 | 550 |
| 551 VariantClear(&state); | 551 VariantClear(&state); |
| 552 return state.lVal; | 552 return state.lVal; |
| 553 } | 553 } |
| OLD | NEW |