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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/views/views_switches.h" 5 #include "ui/views/views_switches.h"
6 6
7 #include "base/command_line.h"
8 #include "build/build_config.h" 7 #include "build/build_config.h"
9 8
10 namespace views { 9 namespace views {
11 namespace switches { 10 namespace switches {
12 11
13 // Please keep alphabetized. 12 // Please keep alphabetized.
14 13
15 // Specifies if a heuristic should be used to determine the most probable
16 // target of a gesture, where the touch region is represented by a rectangle.
17 const char kDisableViewsRectBasedTargeting[] =
18 "disable-views-rect-based-targeting";
19
20 // Draws a semitransparent rect to indicate the bounds of each view. 14 // Draws a semitransparent rect to indicate the bounds of each view.
21 const char kDrawViewBoundsRects[] = "draw-view-bounds-rects"; 15 const char kDrawViewBoundsRects[] = "draw-view-bounds-rects";
22 16
23 bool IsRectBasedTargetingEnabled() {
24 #if defined(OS_CHROMEOS) || defined(OS_WIN) || defined(OS_LINUX)
25 return !base::CommandLine::ForCurrentProcess()->HasSwitch(
26 kDisableViewsRectBasedTargeting);
27 #else
28 return false;
29 #endif
30 }
31
32 } // namespace switches 17 } // namespace switches
33 } // namespace views 18 } // namespace views
OLDNEW
« 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