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

Side by Side Diff: ui/base/ui_base_switches_util.cc

Issue 853033002: More delete + gfx_unittests (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix android trybots Created 5 years, 11 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
« no previous file with comments | « ui/base/ui_base_switches_util.h ('k') | ui/base/ui_base_types.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #include "ui/base/ui_base_switches_util.h"
6
7 #include "base/command_line.h"
8 #include "ui/base/ui_base_switches.h"
9
10 using base::CommandLine;
11
12 namespace switches {
13
14 bool IsTextInputFocusManagerEnabled() {
15 return CommandLine::ForCurrentProcess()->HasSwitch(
16 switches::kEnableTextInputFocusManager);
17 }
18
19 bool IsTouchDragDropEnabled() {
20 #if defined(OS_CHROMEOS)
21 return !CommandLine::ForCurrentProcess()->HasSwitch(
22 switches::kDisableTouchDragDrop);
23 #else
24 return CommandLine::ForCurrentProcess()->HasSwitch(
25 switches::kEnableTouchDragDrop);
26 #endif
27 }
28
29 bool IsTouchEditingEnabled() {
30 return CommandLine::ForCurrentProcess()->HasSwitch(
31 switches::kEnableTouchEditing);
32 }
33
34 bool IsTouchFeedbackEnabled() {
35 static bool touch_feedback_enabled = CommandLine::ForCurrentProcess()->
36 HasSwitch(switches::kEnableTouchFeedback);
37 return touch_feedback_enabled;
38 }
39
40 } // namespace switches
OLDNEW
« no previous file with comments | « ui/base/ui_base_switches_util.h ('k') | ui/base/ui_base_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698