Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(402)

Side by Side Diff: chrome/browser/ui/views/accessibility/navigation_accessibility_uitest_win.cc

Issue 1109043003: Apply automated fixits for Chrome clang plugin to chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/printing/pdf_to_emf_converter.cc ('k') | chrome/browser/ui/views/message_center/web_notification_tray.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698