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

Unified Diff: content/renderer/render_view_impl.cc

Issue 2694413006: Scope and clean up uses of AccessibilityMode. (Closed)
Patch Set: remove kOff Created 3 years, 10 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/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 65b2fdc53609d0d663e60780b1b5f3c3eb536451..98d53b9f8ed3e2113db036eb8a6c8ec9d3537d26 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -2501,10 +2501,12 @@ bool RenderViewImpl::didTapMultipleTargets(
// as this interferes with "touch exploration".
AccessibilityMode accessibility_mode =
GetMainRenderFrame()->accessibility_mode();
- bool matches_accessibility_mode_complete =
- (accessibility_mode & ACCESSIBILITY_MODE_COMPLETE) ==
- ACCESSIBILITY_MODE_COMPLETE;
- if (matches_accessibility_mode_complete)
+
+ AccessibilityMode complete_mode(
+ AccessibilityMode::kNativeAPIs | AccessibilityMode::kWebContents |
+ AccessibilityMode::kInlineTextBoxes | AccessibilityMode::kScreenReader |
+ AccessibilityMode::kHTML);
+ if (accessibility_mode == complete_mode)
return false;
// The touch_rect, target_rects and zoom_rect are in the outer viewport

Powered by Google App Engine
This is Rietveld 408576698