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

Unified 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: patch for landing 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/views_switches.h ('k') | ui/views/widget/root_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..819d39060cceaaa1c498de5f5c5f122605fb94d0
--- /dev/null
+++ b/ui/views/views_switches.cc
@@ -0,0 +1,24 @@
+// 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 kViewsUseRectBasedTargeting[] = "views-use-rect-based-targeting";
+
+bool UseRectBasedTargeting() {
+ return CommandLine::ForCurrentProcess()->
+ HasSwitch(kViewsUseRectBasedTargeting);
+}
+
+} // namespace switches
+} // namespace views
« no previous file with comments | « ui/views/views_switches.h ('k') | ui/views/widget/root_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698