| 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 #include <oleacc.h> | 5 #include <oleacc.h> |
| 6 | 6 |
| 7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
| 8 #include "base/win/scoped_comptr.h" | 8 #include "base/win/scoped_comptr.h" |
| 9 #include "chrome/browser/ui/browser.h" | 9 #include "chrome/browser/ui/browser.h" |
| 10 #include "chrome/browser/ui/browser_window.h" | 10 #include "chrome/browser/ui/browser_window.h" |
| 11 #include "chrome/browser/ui/view_ids.h" | 11 #include "chrome/browser/ui/view_ids.h" |
| 12 #include "chrome/browser/ui/views/bookmarks/bookmark_bar_view.h" | 12 #include "chrome/browser/ui/views/bookmarks/bookmark_bar_view.h" |
| 13 #include "chrome/browser/ui/views/frame/browser_view.h" | 13 #include "chrome/browser/ui/views/frame/browser_view.h" |
| 14 #include "chrome/browser/ui/views/toolbar_view.h" | 14 #include "chrome/browser/ui/views/toolbar_view.h" |
| 15 #include "chrome/common/url_constants.h" | 15 #include "chrome/common/url_constants.h" |
| 16 #include "chrome/test/base/in_process_browser_test.h" | 16 #include "chrome/test/base/in_process_browser_test.h" |
| 17 #include "chrome/test/base/ui_test_utils.h" | 17 #include "chrome/test/base/ui_test_utils.h" |
| 18 #include "grit/chromium_strings.h" | 18 #include "grit/chromium_strings.h" |
| 19 #include "grit/generated_resources.h" | 19 #include "grit/generated_resources.h" |
| 20 #include "ui/base/accessibility/accessibility_types.h" | 20 #include "ui/base/accessibility/accessibility_types.h" |
| 21 #include "ui/base/l10n/l10n_util.h" | 21 #include "ui/base/l10n/l10n_util.h" |
| 22 #include "views/accessibility/native_view_accessibility_win.h" | 22 #include "ui/views/accessibility/native_view_accessibility_win.h" |
| 23 #include "views/widget/widget.h" | 23 #include "views/widget/widget.h" |
| 24 | 24 |
| 25 namespace { | 25 namespace { |
| 26 | 26 |
| 27 VARIANT id_self = {VT_I4, CHILDID_SELF}; | 27 VARIANT id_self = {VT_I4, CHILDID_SELF}; |
| 28 | 28 |
| 29 // Dummy class to force creation of ATL module, needed by COM to instantiate | 29 // Dummy class to force creation of ATL module, needed by COM to instantiate |
| 30 // NativeViewAccessibilityWin. | 30 // NativeViewAccessibilityWin. |
| 31 class TestAtlModule : public CAtlDllModuleT<TestAtlModule> {}; | 31 class TestAtlModule : public CAtlDllModuleT<TestAtlModule> {}; |
| 32 TestAtlModule test_atl_module_; | 32 TestAtlModule test_atl_module_; |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 ASSERT_EQ(S_OK, hr); | 264 ASSERT_EQ(S_OK, hr); |
| 265 ASSERT_TRUE(NULL != acc_obj); | 265 ASSERT_TRUE(NULL != acc_obj); |
| 266 | 266 |
| 267 TestAccessibilityInfo( | 267 TestAccessibilityInfo( |
| 268 acc_obj, | 268 acc_obj, |
| 269 UTF16ToWide(l10n_util::GetStringUTF16(IDS_ABOUT_CHROME_TITLE)), | 269 UTF16ToWide(l10n_util::GetStringUTF16(IDS_ABOUT_CHROME_TITLE)), |
| 270 ROLE_SYSTEM_DIALOG); | 270 ROLE_SYSTEM_DIALOG); |
| 271 | 271 |
| 272 acc_obj->Release(); | 272 acc_obj->Release(); |
| 273 } | 273 } |
| OLD | NEW |