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

Side by Side Diff: content/test/accessibility_browser_test_utils.cc

Issue 2000403003: [forbots] IWYU for ax_enums.h Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "content/test/accessibility_browser_test_utils.h" 5 #include "content/test/accessibility_browser_test_utils.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
11 #include "content/browser/frame_host/render_frame_host_impl.h" 11 #include "content/browser/frame_host/render_frame_host_impl.h"
12 #include "content/browser/renderer_host/render_widget_host_view_base.h" 12 #include "content/browser/renderer_host/render_widget_host_view_base.h"
13 #include "content/browser/web_contents/web_contents_impl.h" 13 #include "content/browser/web_contents/web_contents_impl.h"
14 #include "content/common/view_message_enums.h" 14 #include "content/common/view_message_enums.h"
15 #include "content/public/browser/web_contents.h" 15 #include "content/public/browser/web_contents.h"
16 #include "content/public/common/url_constants.h" 16 #include "content/public/common/url_constants.h"
17 #include "content/public/test/test_utils.h" 17 #include "content/public/test/test_utils.h"
18 #include "content/shell/browser/shell.h" 18 #include "content/shell/browser/shell.h"
19 #include "ui/accessibility/ax_enums.h"
19 #include "ui/accessibility/ax_node.h" 20 #include "ui/accessibility/ax_node.h"
20 21
21 namespace content { 22 namespace content {
22 23
23 AccessibilityNotificationWaiter::AccessibilityNotificationWaiter(Shell* shell) 24 AccessibilityNotificationWaiter::AccessibilityNotificationWaiter(Shell* shell)
24 : event_to_wait_for_(ui::AX_EVENT_NONE), 25 : event_to_wait_for_(ui::AX_EVENT_NONE),
25 loop_runner_(new MessageLoopRunner()), 26 loop_runner_(new MessageLoopRunner()),
26 event_target_id_(0), 27 event_target_id_(0),
27 event_render_frame_host_(nullptr), 28 event_render_frame_host_(nullptr),
28 weak_factory_(this) { 29 weak_factory_(this) {
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 } 105 }
105 106
106 bool AccessibilityNotificationWaiter::IsAboutBlank() { 107 bool AccessibilityNotificationWaiter::IsAboutBlank() {
107 // Skip any accessibility notifications related to "about:blank", 108 // Skip any accessibility notifications related to "about:blank",
108 // to avoid a possible race condition between the test beginning 109 // to avoid a possible race condition between the test beginning
109 // listening for accessibility events and "about:blank" loading. 110 // listening for accessibility events and "about:blank" loading.
110 return GetAXTree().data().url == url::kAboutBlankURL; 111 return GetAXTree().data().url == url::kAboutBlankURL;
111 } 112 }
112 113
113 } // namespace content 114 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/accessibility/renderer_accessibility.cc ('k') | tools/json_schema_compiler/h_generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698