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

Side by Side Diff: ui/views/views_switches.cc

Issue 22891016: Add support for rect-based event targeting in views (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tests added Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
(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 #if defined(OS_CHROMEOS)
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 kViewsUseRectBasedTargeting[] = "views-use-rect-based-targeting";
18 #endif
19
20 bool UseRectBasedTargeting() {
21 #if defined(OS_CHROMEOS)
22 return CommandLine::ForCurrentProcess()->
23 HasSwitch(kViewsUseRectBasedTargeting);
24 #else
25 return false;
26 #endif
27 }
28
29 } // namespace switches
30 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698