| Index: ui/views/views_switches.cc
|
| diff --git a/ui/views/views_switches.cc b/ui/views/views_switches.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8783d6e6ee1bc60dfcdd493aeed31b0353110a0d
|
| --- /dev/null
|
| +++ b/ui/views/views_switches.cc
|
| @@ -0,0 +1,30 @@
|
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "ui/views/views_switches.h"
|
| +
|
| +#include "base/command_line.h"
|
| +
|
| +namespace views {
|
| +namespace switches {
|
| +
|
| +// Please keep alphabetized.
|
| +
|
| +#if defined(OS_CHROMEOS)
|
| +// 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 kViewsUseRectBasedTargeting[] = "views-use-rect-based-targeting";
|
| +#endif
|
| +
|
| +bool UseRectBasedTargeting() {
|
| +#if defined(OS_CHROMEOS)
|
| + return CommandLine::ForCurrentProcess()->
|
| + HasSwitch(kViewsUseRectBasedTargeting);
|
| +#else
|
| + return false;
|
| +#endif
|
| +}
|
| +
|
| +} // namespace switches
|
| +} // namespace views
|
|
|