blob: c541a9b1b26414d25ad7aee0ff41f98a645f049d (
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
|
// 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() {
return CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableTouchDragDrop);
}
bool IsTouchEditingEnabled() {
return CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableTouchEditing);
}
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
|