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

Unified Diff: content/renderer/render_view_impl.cc

Issue 2694413006: Scope and clean up uses of AccessibilityMode. (Closed)
Patch Set: define konstants 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/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 85a9fa9165edb0e29a705f97cb1c2731c7a74ee8..7f1b1446ac49514312a77b2c534ac74398a94abc 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -2503,10 +2503,7 @@ 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)
+ if (accessibility_mode == kAccessibilityModeComplete)
return false;
// The touch_rect, target_rects and zoom_rect are in the outer viewport

Powered by Google App Engine
This is Rietveld 408576698