summaryrefslogtreecommitdiffstats
path: root/ui/views/views_switches.cc
blob: c62e83d1d8bcfd304974a480bad22343b64198b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// 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.

// 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";

bool IsRectBasedTargetingEnabled() {
#if defined(OS_CHROMEOS) || defined(OS_WIN)
  return !CommandLine::ForCurrentProcess()->
      HasSwitch(kDisableViewsRectBasedTargeting);
#else
  return false;
#endif
}

}  // namespace switches
}  // namespace views