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

Unified Diff: ui/views/views_switches.cc

Issue 2930803002: Remove flag --disable-views-rect-based-targeting (Closed)
Patch Set: restore enum entry Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/views_switches.h ('k') | ui/views/widget/root_view_targeter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/views_switches.cc
diff --git a/ui/views/views_switches.cc b/ui/views/views_switches.cc
index 79fe2574aec3a54d270d5d6d8924241e58550a6d..cdf8e39726b3853ae33f4f151fd9eb6acddb1c54 100644
--- a/ui/views/views_switches.cc
+++ b/ui/views/views_switches.cc
@@ -4,7 +4,6 @@
#include "ui/views/views_switches.h"
-#include "base/command_line.h"
#include "build/build_config.h"
namespace views {
@@ -12,22 +11,8 @@ namespace switches {
// Please keep alphabetized.
-// Specifies if a heuristic should be used to determine the most probable
-// target of a gesture, where the touch region is represented by a rectangle.
-const char kDisableViewsRectBasedTargeting[] =
- "disable-views-rect-based-targeting";
-
// Draws a semitransparent rect to indicate the bounds of each view.
const char kDrawViewBoundsRects[] = "draw-view-bounds-rects";
-bool IsRectBasedTargetingEnabled() {
-#if defined(OS_CHROMEOS) || defined(OS_WIN) || defined(OS_LINUX)
- return !base::CommandLine::ForCurrentProcess()->HasSwitch(
- kDisableViewsRectBasedTargeting);
-#else
- return false;
-#endif
-}
-
} // namespace switches
} // namespace views
« no previous file with comments | « ui/views/views_switches.h ('k') | ui/views/widget/root_view_targeter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698