OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "ui/views/views_switches.h" |
| 6 |
| 7 #include "base/command_line.h" |
| 8 |
| 9 namespace views { |
| 10 namespace switches { |
| 11 |
| 12 // Please keep alphabetized. |
| 13 |
| 14 // Specifies if a heuristic should be used to determine the most probable |
| 15 // target of a gesture, where the touch region is represented by a rectangle. |
| 16 const char kViewsUseRectBasedTargeting[] = "views-use-rect-based-targeting"; |
| 17 |
| 18 bool UseRectBasedTargeting() { |
| 19 return CommandLine::ForCurrentProcess()-> |
| 20 HasSwitch(kViewsUseRectBasedTargeting); |
| 21 } |
| 22 |
| 23 } // namespace switches |
| 24 } // namespace views |
OLD | NEW |