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

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

Issue 1543173002: Switch to standard integer types in ui/views/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
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" 7 #include "base/command_line.h"
8 #include "build/build_config.h"
8 9
9 namespace views { 10 namespace views {
10 namespace switches { 11 namespace switches {
11 12
12 // Please keep alphabetized. 13 // Please keep alphabetized.
13 14
14 // Specifies if a heuristic should be used to determine the most probable 15 // Specifies if a heuristic should be used to determine the most probable
15 // target of a gesture, where the touch region is represented by a rectangle. 16 // target of a gesture, where the touch region is represented by a rectangle.
16 const char kDisableViewsRectBasedTargeting[] = 17 const char kDisableViewsRectBasedTargeting[] =
17 "disable-views-rect-based-targeting"; 18 "disable-views-rect-based-targeting";
18 19
19 bool IsRectBasedTargetingEnabled() { 20 bool IsRectBasedTargetingEnabled() {
20 #if defined(OS_CHROMEOS) || defined(OS_WIN) || defined(OS_LINUX) 21 #if defined(OS_CHROMEOS) || defined(OS_WIN) || defined(OS_LINUX)
21 return !base::CommandLine::ForCurrentProcess()->HasSwitch( 22 return !base::CommandLine::ForCurrentProcess()->HasSwitch(
22 kDisableViewsRectBasedTargeting); 23 kDisableViewsRectBasedTargeting);
23 #else 24 #else
24 return false; 25 return false;
25 #endif 26 #endif
26 } 27 }
27 28
28 } // namespace switches 29 } // namespace switches
29 } // namespace views 30 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698