| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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/strings/string_util.h" | 7 #include "base/strings/string_util.h" |
| 8 #include "base/win/scoped_bstr.h" | 8 #include "base/win/scoped_bstr.h" |
| 9 #include "base/win/scoped_com_initializer.h" | 9 #include "base/win/scoped_com_initializer.h" |
| 10 #include "base/win/scoped_comptr.h" | 10 #include "base/win/scoped_comptr.h" |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 DWORD event_time) { | 171 DWORD event_time) { |
| 172 if (instance_) { | 172 if (instance_) { |
| 173 instance_->OnWinEventHook(handle, event, hwnd, obj_id, child_id, | 173 instance_->OnWinEventHook(handle, event, hwnd, obj_id, child_id, |
| 174 event_thread, event_time); | 174 event_thread, event_time); |
| 175 } | 175 } |
| 176 } | 176 } |
| 177 | 177 |
| 178 class NavigationAccessibilityTest : public InProcessBrowserTest { | 178 class NavigationAccessibilityTest : public InProcessBrowserTest { |
| 179 protected: | 179 protected: |
| 180 NavigationAccessibilityTest() {} | 180 NavigationAccessibilityTest() {} |
| 181 virtual ~NavigationAccessibilityTest() {} | 181 ~NavigationAccessibilityTest() override {} |
| 182 | 182 |
| 183 void SendKeyPress(ui::KeyboardCode key) { | 183 void SendKeyPress(ui::KeyboardCode key) { |
| 184 gfx::NativeWindow native_window = browser()->window()->GetNativeWindow(); | 184 gfx::NativeWindow native_window = browser()->window()->GetNativeWindow(); |
| 185 ASSERT_NO_FATAL_FAILURE( | 185 ASSERT_NO_FATAL_FAILURE( |
| 186 ASSERT_TRUE( | 186 ASSERT_TRUE( |
| 187 ui_test_utils::SendKeyPressToWindowSync( | 187 ui_test_utils::SendKeyPressToWindowSync( |
| 188 native_window, key, false, false, false, false))); | 188 native_window, key, false, false, false, false))); |
| 189 } | 189 } |
| 190 | 190 |
| 191 private: | 191 private: |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 // second page. | 248 // second page. |
| 249 EXPECT_NE("First Page", name); | 249 EXPECT_NE("First Page", name); |
| 250 | 250 |
| 251 // Finish when we get an event on the second page. | 251 // Finish when we get an event on the second page. |
| 252 if (name == "This page is in English") { | 252 if (name == "This page is in English") { |
| 253 LOG(INFO) << "Got event on second page, finishing test."; | 253 LOG(INFO) << "Got event on second page, finishing test."; |
| 254 break; | 254 break; |
| 255 } | 255 } |
| 256 } | 256 } |
| 257 } | 257 } |
| OLD | NEW |