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

Unified Diff: content/browser/renderer_host/legacy_render_widget_host_win.cc

Issue 2694413006: Scope and clean up uses of AccessibilityMode. (Closed)
Patch Set: merge Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/legacy_render_widget_host_win.cc
diff --git a/content/browser/renderer_host/legacy_render_widget_host_win.cc b/content/browser/renderer_host/legacy_render_widget_host_win.cc
index 8d3f11cba47bc494887ce2c022954c729fd6ed05..c619024b9d201e64a4d29ee70c5c3b9c87bf3c5c 100644
--- a/content/browser/renderer_host/legacy_render_widget_host_win.cc
+++ b/content/browser/renderer_host/legacy_render_widget_host_win.cc
@@ -121,7 +121,7 @@ bool LegacyRenderWidgetHostHWND::Init() {
AccessibilityMode mode =
BrowserAccessibilityStateImpl::GetInstance()->accessibility_mode();
- if (!(mode & ACCESSIBILITY_MODE_FLAG_NATIVE_APIS)) {
+ if (!mode.has_mode(AccessibilityMode::kNativeAPIs)) {
// Attempt to detect screen readers or other clients who want full
// accessibility support, by seeing if they respond to this event.
NotifyWinEvent(EVENT_SYSTEM_ALERT, hwnd(), kIdScreenReaderHoneyPot,
@@ -166,8 +166,7 @@ LRESULT LegacyRenderWidgetHostHWND::OnGetObject(UINT message,
// enable basic accessibility support. (Full screen reader support is
// detected later when specific more advanced APIs are accessed.)
BrowserAccessibilityStateImpl::GetInstance()->AddAccessibilityModeFlags(
- ACCESSIBILITY_MODE_FLAG_NATIVE_APIS |
- ACCESSIBILITY_MODE_FLAG_WEB_CONTENTS);
+ AccessibilityMode::kNativeAPIs | AccessibilityMode::kWebContents);
return static_cast<LRESULT>(0L);
}
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | content/browser/web_contents/web_contents_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698