blob: 32034218dd5e31ff5ff82e3153fd482859ec0f78 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
// 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/base/ui_base_switches_util.h"
#include "base/command_line.h"
#include "ui/base/ui_base_switches.h"
namespace switches {
bool IsTouchDragDropEnabled() {
#if defined(OS_CHROMEOS)
return !CommandLine::ForCurrentProcess()->HasSwitch(
switches::kDisableTouchDragDrop);
#else
return CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableTouchDragDrop);
#endif
}
bool IsTouchEditingEnabled() {
#if defined(OS_CHROMEOS)
return !CommandLine::ForCurrentProcess()->HasSwitch(
switches::kDisableTouchEditing);
#else
return CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableTouchEditing);
#endif
}
bool IsNewDialogStyleEnabled() {
CommandLine* command_line = CommandLine::ForCurrentProcess();
if (command_line->HasSwitch(switches::kDisableNewDialogStyle))
return false;
if (command_line->HasSwitch(switches::kEnableNewDialogStyle))
return true;
return true;
}
} // namespace switches
|