[SyncFS] Build indexes from FileTracker entries on disk.
[chromium-blink-merge.git] / ui / base / ui_base_switches_util.cc
blobba20e53f7fa3ef355e499c948cfa34fbf76334e8
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.
5 #include "ui/base/ui_base_switches_util.h"
7 #include "base/command_line.h"
8 #include "ui/base/ui_base_switches.h"
10 namespace switches {
12 bool IsTextInputFocusManagerEnabled() {
13 return CommandLine::ForCurrentProcess()->HasSwitch(
14 switches::kEnableTextInputFocusManager);
17 bool IsTouchDragDropEnabled() {
18 #if defined(OS_CHROMEOS)
19 return !CommandLine::ForCurrentProcess()->HasSwitch(
20 switches::kDisableTouchDragDrop);
21 #else
22 return CommandLine::ForCurrentProcess()->HasSwitch(
23 switches::kEnableTouchDragDrop);
24 #endif
27 bool IsTouchEditingEnabled() {
28 #if defined(USE_AURA)
29 return !CommandLine::ForCurrentProcess()->HasSwitch(
30 switches::kDisableTouchEditing);
31 #else
32 return CommandLine::ForCurrentProcess()->HasSwitch(
33 switches::kEnableTouchEditing);
34 #endif
37 } // namespace switches