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" |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 std::wstring title = UTF16ToWide(l10n_util::GetStringFUTF16( | 135 std::wstring title = UTF16ToWide(l10n_util::GetStringFUTF16( |
136 IDS_BROWSER_WINDOW_TITLE_FORMAT, | 136 IDS_BROWSER_WINDOW_TITLE_FORMAT, |
137 ASCIIToUTF16(chrome::kAboutBlankURL))); | 137 ASCIIToUTF16(chrome::kAboutBlankURL))); |
138 TestAccessibilityInfo(acc_obj, title, ROLE_SYSTEM_WINDOW); | 138 TestAccessibilityInfo(acc_obj, title, ROLE_SYSTEM_WINDOW); |
139 } | 139 } |
140 | 140 |
141 // Retrieve accessibility object for non client view and verify accessibility | 141 // Retrieve accessibility object for non client view and verify accessibility |
142 // info. | 142 // info. |
143 IN_PROC_BROWSER_TEST_F(BrowserViewsAccessibilityTest, TestNonClientViewAccObj) { | 143 IN_PROC_BROWSER_TEST_F(BrowserViewsAccessibilityTest, TestNonClientViewAccObj) { |
144 views::View* non_client_view = | 144 views::View* non_client_view = |
145 GetBrowserView()->GetWindow()->non_client_view(); | 145 GetBrowserView()->GetWidget()->non_client_view(); |
146 | 146 |
147 TestViewAccessibilityObject(non_client_view, | 147 TestViewAccessibilityObject(non_client_view, |
148 UTF16ToWide(l10n_util::GetStringUTF16(IDS_PRODUCT_NAME)), | 148 UTF16ToWide(l10n_util::GetStringUTF16(IDS_PRODUCT_NAME)), |
149 ROLE_SYSTEM_WINDOW); | 149 ROLE_SYSTEM_WINDOW); |
150 } | 150 } |
151 | 151 |
152 // Retrieve accessibility object for browser root view and verify | 152 // Retrieve accessibility object for browser root view and verify |
153 // accessibility info. | 153 // accessibility info. |
154 IN_PROC_BROWSER_TEST_F(BrowserViewsAccessibilityTest, | 154 IN_PROC_BROWSER_TEST_F(BrowserViewsAccessibilityTest, |
155 TestBrowserRootViewAccObj) { | 155 TestBrowserRootViewAccObj) { |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 ASSERT_EQ(S_OK, hr); | 266 ASSERT_EQ(S_OK, hr); |
267 ASSERT_TRUE(NULL != acc_obj); | 267 ASSERT_TRUE(NULL != acc_obj); |
268 | 268 |
269 TestAccessibilityInfo( | 269 TestAccessibilityInfo( |
270 acc_obj, | 270 acc_obj, |
271 UTF16ToWide(l10n_util::GetStringUTF16(IDS_ABOUT_CHROME_TITLE)), | 271 UTF16ToWide(l10n_util::GetStringUTF16(IDS_ABOUT_CHROME_TITLE)), |
272 ROLE_SYSTEM_DIALOG); | 272 ROLE_SYSTEM_DIALOG); |
273 | 273 |
274 acc_obj->Release(); | 274 acc_obj->Release(); |
275 } | 275 } |
OLD | NEW |